Fix missing whitespace in the printing of function notes.
authorDan Gohman <gohman@apple.com>
Fri, 26 Sep 2008 22:02:59 +0000 (22:02 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 26 Sep 2008 22:02:59 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 5ebf31c6215878c41ce225ecf4bef8ae21e8283d..b1ce257105212880dae8f5b4e0636cde6f1d2e08 100644 (file)
@@ -1413,7 +1413,7 @@ void AssemblyWriter::printFunction(const Function *F) {
 
     bool insideNotes = false;
     if (F->hasNote(Attribute::AlwaysInline)) {
-      Out << "notes(";
+      Out << " notes(";
       insideNotes = true;
       Out << "inline=always";
     }
@@ -1421,7 +1421,7 @@ void AssemblyWriter::printFunction(const Function *F) {
       if (insideNotes) 
         Out << ",";
       else {
-        Out << "notes(";
+        Out << " notes(";
         insideNotes = true;
       }
       Out << "inline=never";
@@ -1430,7 +1430,7 @@ void AssemblyWriter::printFunction(const Function *F) {
       if (insideNotes) 
         Out << ",";
       else {
-        Out << "notes(";
+        Out << " notes(";
         insideNotes = true;
       }
       Out << "opt_size";