llvm.org GIT mirror llvm / b6ec8ca
Enable a few additional asserts in MC instruction lowering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114601 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 9 years ago
1 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
7474 raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "JTI"
7575 << Printer.getFunctionNumber() << '_' << MO.getIndex();
7676
77 #if 0
7877 switch (MO.getTargetFlags()) {
79 default: llvm_unreachable("Unknown target flag on GV operand");
78 default: assert(0 && "Unknown target flag on jump table operand");
79 case 0: break;
8080 }
81 #endif
8281
8382 // Create a symbol for the name.
8483 return Ctx.GetOrCreateSymbol(Name.str());
9089 raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "CPI"
9190 << Printer.getFunctionNumber() << '_' << MO.getIndex();
9291
93 #if 0
9492 switch (MO.getTargetFlags()) {
95 default: llvm_unreachable("Unknown target flag on GV operand");
93 default: assert(0 && "Unknown target flag on CPI operand");
94 case 0: break;
9695 }
97 #endif
9896
9997 // Create a symbol for the name.
10098 return Ctx.GetOrCreateSymbol(Name.str());
106104 // lot of extra uniquing.
107105 const MCExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx);
108106
109 #if 0
110107 switch (MO.getTargetFlags()) {
111 default: llvm_unreachable("Unknown target flag on GV operand");
108 default: assert(0 && "Unknown target flag on Symbol operand");
109 case 0: break;
112110 }
113 #endif
114111
115112 if (!MO.isJTI() && MO.getOffset())
116113 Expr = MCBinaryExpr::CreateAdd(Expr,