summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-04-17 22:33:50 +0000
committerDiego Novillo <dnovillo@google.com>2014-04-17 22:33:50 +0000
commit0915c047c2e8d94eb9c8e726e10e2d1ef63db29c (patch)
tree3dbea92edbbe7dccd491690c6c7cc56a0548f660 /llvm/include
parent9ced19abe89a248963b629528ff3e0fee930ed98 (diff)
downloadbcm5719-llvm-0915c047c2e8d94eb9c8e726e10e2d1ef63db29c.tar.gz
bcm5719-llvm-0915c047c2e8d94eb9c8e726e10e2d1ef63db29c.zip
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 llvm-svn: 206507
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Module.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index f728b4eeaa9..3951355c86d 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/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;
+
/// @}
};
OpenPOWER on IntegriCloud