diff options
author | Diego Novillo <dnovillo@google.com> | 2014-04-17 22:33:50 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2014-04-17 22:33:50 +0000 |
commit | 0a0d620db36b21dc9c2f161897e29abe51afea51 (patch) | |
tree | e98d624e2f4414eade3106093017c0ce36786abe /include | |
parent | 07f099b867d60520d5fb391afd3d962638276cf4 (diff) | |
download | llvm-0a0d620db36b21dc9c2f161897e29abe51afea51.tar.gz llvm-0a0d620db36b21dc9c2f161897e29abe51afea51.tar.bz2 llvm-0a0d620db36b21dc9c2f161897e29abe51afea51.tar.xz |
Fix bug 19437 - Only add discriminators for DWARF 4 and above.
Summary:
This prevents the discriminator generation pass from triggering if
the DWARF version being used in the module is prior to 4.
Reviewers: echristo, dblaikie
CC: llvm-commits
Differential Revision: http://reviews.llvm.org/D3413
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Module.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/IR/Module.h b/include/llvm/IR/Module.h index f728b4eeaa..3951355c86 100644 --- a/include/llvm/IR/Module.h +++ b/include/llvm/IR/Module.h @@ -598,6 +598,14 @@ public: /// is delete'd for real. Note that no operations are valid on an object /// that has "dropped all references", except operator delete. void dropAllReferences(); + +/// @} +/// @name Utility functions for querying Debug information. +/// @{ + + /// \brief Returns the Dwarf Version by checking module flags. + unsigned getDwarfVersion() const; + /// @} }; |