summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-02 23:40:10 +0000
committerManman Ren <mren@apple.com>2013-07-02 23:40:10 +0000
commit0e6783feed2f0f572a002bda38707fcd3267916d (patch)
tree3bf69ef6cb0a003d98ce98ad023d5cb60c9cbafc /include/llvm/CodeGen/AsmPrinter.h
parentd3b98530c55ab695ab02426a804ee0ca09f890b6 (diff)
downloadllvm-0e6783feed2f0f572a002bda38707fcd3267916d.tar.gz
llvm-0e6783feed2f0f572a002bda38707fcd3267916d.tar.bz2
llvm-0e6783feed2f0f572a002bda38707fcd3267916d.tar.xz
Debug Info: use module flag to set up Dwarf version.
Correctly handles ref_addr depending on the Dwarf version. Emit Dwarf with version from module flag. TODO: turn on/off features depending on the Dwarf version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index c51a7f3e1a..677331b3ba 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -121,6 +121,8 @@ namespace llvm {
public:
virtual ~AsmPrinter();
+ const DwarfDebug *getDwarfDebug() const { return DD; }
+
/// isVerbose - Return true if assembly output should contain comments.
///
bool isVerbose() const { return VerboseAsm; }