diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-20 16:10:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-20 16:10:33 +0000 |
commit | ba0941fbe0db832b0bdca450688b63ddf6a45b0a (patch) | |
tree | 92d5cdd3be125943f2aadf53d1df77c0d96551de /lib/VMCore | |
parent | c3bbf579ae3ddc67bfd06f12496ae24af70e0ba0 (diff) | |
download | external_llvm-ba0941fbe0db832b0bdca450688b63ddf6a45b0a.zip external_llvm-ba0941fbe0db832b0bdca450688b63ddf6a45b0a.tar.gz external_llvm-ba0941fbe0db832b0bdca450688b63ddf6a45b0a.tar.bz2 |
Don't discard an AssemblyAnnotationWriter when writing GlobalValues,
which include Functions, where it can be quite useful to use an
AssemblyAnnotationWriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index e4dd9d6..f007c76 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1833,7 +1833,7 @@ void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const { W.write(BB); } else if (const GlobalValue *GV = dyn_cast<GlobalValue>(this)) { SlotTracker SlotTable(GV->getParent()); - AssemblyWriter W(OS, SlotTable, GV->getParent(), 0); + AssemblyWriter W(OS, SlotTable, GV->getParent(), AAW); W.write(GV); } else if (const Constant *C = dyn_cast<Constant>(this)) { TypePrinting TypePrinter; |