diff options
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/DebugInfo.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/CodeGen/DwarfWriter.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h index a8e124c6f09..6a0eb070c5b 100644 --- a/llvm/include/llvm/Analysis/DebugInfo.h +++ b/llvm/include/llvm/Analysis/DebugInfo.h @@ -15,6 +15,7 @@ #ifndef LLVM_ANALYSIS_DEBUGINFO_H #define LLVM_ANALYSIS_DEBUGINFO_H +#include "llvm/Target/TargetMachine.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Support/Dwarf.h" @@ -70,6 +71,9 @@ namespace llvm { return getUnsignedField(0) & ~LLVMDebugVersionMask; } + /// ValidDebugInfo - Return true if V represents valid debug info value. + static bool ValidDebugInfo(Value *V, CodeGenOpt::Level OptLevel); + }; /// DIAnchor - A wrapper for various anchor descriptors. diff --git a/llvm/include/llvm/CodeGen/DwarfWriter.h b/llvm/include/llvm/CodeGen/DwarfWriter.h index 9ca7d7e4f2b..8e680e3e113 100644 --- a/llvm/include/llvm/CodeGen/DwarfWriter.h +++ b/llvm/include/llvm/CodeGen/DwarfWriter.h @@ -82,9 +82,6 @@ public: /// void EndFunction(MachineFunction *MF); - /// ValidDebugInfo - Return true if V represents valid debug info value. - bool ValidDebugInfo(Value *V, CodeGenOpt::Level OptLevel); - /// RecordSourceLine - Register a source line with debug info. Returns a /// unique label ID used to generate a label and provide correspondence to /// the source line list. |

