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 495baca..c82254c 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;