diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-01-27 21:53:08 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2016-01-27 21:53:08 +0000 |
commit | e257f0f671920dc6def02fe85c57ea2d795cf911 (patch) | |
tree | df1d686cc39677cac7ab5e2c4fbf3f504bdad978 /llvm/lib/IR | |
parent | e7f8b23716232f9ee143f855a12e55fd4fe4d333 (diff) | |
download | bcm5719-llvm-e257f0f671920dc6def02fe85c57ea2d795cf911.tar.gz bcm5719-llvm-e257f0f671920dc6def02fe85c57ea2d795cf911.zip |
Tweak unnamed label syntax in textual IR for easier matching in tests.
Change the unnamed label comments like
; <label>:8 ; preds = %1
to
; <label>:8: ; preds = %1
This way lit tests can match [[LABEL]]: in both asserts and no-asserts builds.
llvm-svn: 258993
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 758a92b75e4..44661940c4f 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -2676,7 +2676,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { Out << "\n; <label>:"; int Slot = Machine.getLocalSlot(BB); if (Slot != -1) - Out << Slot; + Out << Slot << ":"; else Out << "<badref>"; } |