Add new lines to debugging information.
authorRichard Trieu <rtrieu@google.com>
Thu, 3 Jul 2014 02:11:49 +0000 (02:11 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 3 Jul 2014 02:11:49 +0000 (02:11 +0000)
Differential Revision: http://reviews.llvm.org/D4262

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212250 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/CallGraphSCCPass.cpp
test/Transforms/Inline/null-function.ll [new file with mode: 0644]

index 730eb7156d1cb7d42108af1d65a307707c19b2e0..c27edbfa2ff58067119e468c2f35846255067a6e 100644 (file)
@@ -606,7 +606,7 @@ namespace {
         if ((*I)->getFunction())
           (*I)->getFunction()->print(Out);
         else
-          Out << "Printing <null> Function";
+          Out << "\nPrinting <null> Function\n";
       }
       return false;
     }
diff --git a/test/Transforms/Inline/null-function.ll b/test/Transforms/Inline/null-function.ll
new file mode 100644 (file)
index 0000000..2aecfa8
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: opt -print-before=always-inline -always-inline < %s -o /dev/null 2>&1 | FileCheck %s
+
+define i32 @main() #0 {
+entry:
+  ret i32 0
+}
+
+; CHECK: *** IR Dump Before Inliner for always_inline functions ***
+; CHECK: Printing <null> Function