diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-03 08:50:41 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-03 08:50:41 +0000 |
| commit | 97324cec99346d01c7cadfd28cfb8bc42a0a2341 (patch) | |
| tree | cf2e18fed3d06b1c51e70084b5398a655742e463 /llvm/include | |
| parent | abf843db3693476a617227c550be4020c85e5184 (diff) | |
| download | bcm5719-llvm-97324cec99346d01c7cadfd28cfb8bc42a0a2341.tar.gz bcm5719-llvm-97324cec99346d01c7cadfd28cfb8bc42a0a2341.zip | |
-Move the DwarfWriter::ValidDebugInfo check to a static DIDescriptor::ValidDebugInfo
-Create DebugLocs without the need to have a DwarfWriter around
llvm-svn: 70682
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. |

