diff options
| author | Richard Trieu <rtrieu@google.com> | 2014-07-03 02:11:49 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2014-07-03 02:11:49 +0000 |
| commit | f2a795241a1211cedbf85274a65c3426b1e35b66 (patch) | |
| tree | 34618e3b4937244ac6ab0c1a852231826f0dc748 | |
| parent | 49a8b10d827666daa62064090cb11d6148cac3a3 (diff) | |
| download | bcm5719-llvm-f2a795241a1211cedbf85274a65c3426b1e35b66.tar.gz bcm5719-llvm-f2a795241a1211cedbf85274a65c3426b1e35b66.zip | |
Add new lines to debugging information.
Differential Revision: http://reviews.llvm.org/D4262
llvm-svn: 212250
| -rw-r--r-- | llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/Transforms/Inline/null-function.ll | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp index 730eb7156d1..c27edbfa2ff 100644 --- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -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/llvm/test/Transforms/Inline/null-function.ll b/llvm/test/Transforms/Inline/null-function.ll new file mode 100644 index 00000000000..2aecfa85cd8 --- /dev/null +++ b/llvm/test/Transforms/Inline/null-function.ll @@ -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 |

