summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-10 20:41:46 +0000
committerDan Gohman <gohman@apple.com>2010-02-10 20:41:46 +0000
commite34890f9217da77ae80cbb630ee4a6f30ceec560 (patch)
tree8d82c89fcad589a48286b655bd06dbe0c09edf4c /llvm/lib
parente78a922eef446b2d98514fa7e0cc49851be6f8b1 (diff)
downloadbcm5719-llvm-e34890f9217da77ae80cbb630ee4a6f30ceec560.tar.gz
bcm5719-llvm-e34890f9217da77ae80cbb630ee4a6f30ceec560.zip
Add a hook to AssemblyAnnotationWriter to allow custom info comments
to be printed, in place of the familiar "uses=" comments. llvm-svn: 95798
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index ab5f45a2b94..586817073bd 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud