summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-07 05:27:36 +0000
committerChris Lattner <sabre@nondot.org>2010-04-07 05:27:36 +0000
commitd62adaa54dd9fff432c5e5124cc7ac75f8665d23 (patch)
treeeb0dd01d05bfa039cff5a6280c04efe59f46dda3 /llvm/lib/CodeGen
parent3b9f02a2aa4ccbfcc3e773e7f7472a5e2a959290 (diff)
downloadbcm5719-llvm-d62adaa54dd9fff432c5e5124cc7ac75f8665d23.tar.gz
bcm5719-llvm-d62adaa54dd9fff432c5e5124cc7ac75f8665d23.zip
remove another magic number.
llvm-svn: 100606
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
index 255bcd413f2..46f3faf00b2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
@@ -167,10 +167,9 @@ void AsmPrinter::EmitInlineAsm(const MachineInstr *MI) const {
break;
case '(': // $( -> same as GCC's { character.
++LastEmitted; // Consume '(' character.
- if (CurVariant != -1) {
+ if (CurVariant != -1)
llvm_report_error("Nested variants found in inline asm string: '"
+ std::string(AsmStr) + "'");
- }
CurVariant = 0; // We're in the first variant now.
break;
case '|':
@@ -273,7 +272,7 @@ void AsmPrinter::EmitInlineAsm(const MachineInstr *MI) const {
OS << *MI->getOperand(OpNo).getMBB()->getSymbol();
else {
AsmPrinter *AP = const_cast<AsmPrinter*>(this);
- if ((OpFlags & 7) == 4) {
+ if (InlineAsm::isMemKind(OpFlags)) {
Error = AP->PrintAsmMemoryOperand(MI, OpNo, AsmPrinterVariant,
Modifier[0] ? Modifier : 0,
OS);
OpenPOWER on IntegriCloud