Support ; as asm separator
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 13 Nov 2010 19:54:23 +0000 (19:54 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 13 Nov 2010 19:54:23 +0000 (19:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119006 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 495baca78ec20da153cb348aab504ecde936d639..c82254ca9fb38803c9e17a4acb74126a897a0e4e 100644 (file)
@@ -11410,7 +11410,7 @@ bool X86TargetLowering::ExpandInlineAsm(CallInst *CI) const {
 
   // TODO: should remove alternatives from the asmstring: "foo {a|b}" -> "foo a"
   SmallVector<StringRef, 4> AsmPieces;
-  SplitString(AsmStr, AsmPieces, "\n");  // ; as separator?
+  SplitString(AsmStr, AsmPieces, ";\n");
 
   switch (AsmPieces.size()) {
   default: return false;