aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-13 21:25:00 +0000
committerDevang Patel <dpatel@apple.com>2009-01-13 21:25:00 +0000
commitbb8c5959c83504fbc438e6efade30fa4b70a25b6 (patch)
tree082805ac0be1d31ba812c68dd9d7f8cf92ec9755 /include/llvm
parent4afe15b131c7cc5b97cd7934d71ec0119d3e2c5b (diff)
downloadexternal_llvm-bb8c5959c83504fbc438e6efade30fa4b70a25b6.tar.gz
external_llvm-bb8c5959c83504fbc438e6efade30fa4b70a25b6.tar.bz2
external_llvm-bb8c5959c83504fbc438e6efade30fa4b70a25b6.zip
Use dwarf writer to decide whether the module has debug info or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index c2ad3a6483..24b0f97dfc 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -93,6 +93,9 @@ public:
/// getRecordSourceLineCount - Count source lines.
unsigned getRecordSourceLineCount();
+ /// hasDebugInfo - Return true if debug info intrinsics are seen in
+ /// this module.
+ bool hasDebugInfo();
};