summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-15 23:41:32 +0000
committerDevang Patel <dpatel@apple.com>2009-01-15 23:41:32 +0000
commitcf3a4487c0627d15d03fb6fedc10b58f6e2c9ebe (patch)
treeb99fd06b4586d9db5e2df2549e1d6f9ec64707bd /include
parentfa9c5eac33bef67e2faef166c902e3bb16efa30f (diff)
downloadllvm-cf3a4487c0627d15d03fb6fedc10b58f6e2c9ebe.tar.gz
llvm-cf3a4487c0627d15d03fb6fedc10b58f6e2c9ebe.tar.bz2
llvm-cf3a4487c0627d15d03fb6fedc10b58f6e2c9ebe.tar.xz
Validate dbg_* intrinsics before lowering them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 7c9ada8305..1616dfa4e9 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -29,6 +29,7 @@ class DwarfDebug;
class DwarfException;
class MachineModuleInfo;
class MachineFunction;
+class Value;
class Module;
class GlobalVariable;
class TargetAsmInfo;
@@ -75,6 +76,8 @@ public:
///
void EndFunction(MachineFunction *MF);
+ /// ValidDebugInfo - Return true if V represents valid debug info value.
+ bool ValidDebugInfo(Value *V);
/// label. Returns a unique label ID used to generate a label and provide
/// correspondence to the source line list.