diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-10 20:41:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-10 20:41:46 +0000 |
commit | 7a5666e7f3ba5d7825e5d65d601f9679d10a56bb (patch) | |
tree | ce1cf6aa5fd453e5b98a548ec818f06928662d2f /lib/VMCore/AsmWriter.cpp | |
parent | 7c1dfb9df29f03c218296db51963fe9c37c471d2 (diff) |
Add a hook to AssemblyAnnotationWriter to allow custom info comments
to be printed, in place of the familiar "uses=" comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ab5f45a2b9..586817073b 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1694,6 +1694,11 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { /// which slot it occupies. /// void AssemblyWriter::printInfoComment(const Value &V) { + if (AnnotationWriter) { + AnnotationWriter->printInfoComment(V, Out); + return; + } + if (V.getType()->isVoidTy()) return; Out.PadToColumn(50); |