aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/DwarfWriter.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-04-30 23:22:31 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-04-30 23:22:31 +0000
commita26eae64ddf607549f9e47046d46ea5b9ec648b4 (patch)
treec120bcc5dae1ed6c28cdf9b86b0dac5b9c71a65e /include/llvm/CodeGen/DwarfWriter.h
parent19fee415f63ddb78fca703085fe56510be3e058c (diff)
downloadexternal_llvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.zip
external_llvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.tar.gz
external_llvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.tar.bz2
Make DebugLoc independent of DwarfWriter.
-Replace DebugLocTuple's Source ID with CompileUnit's GlobalVariable* -Remove DwarfWriter::getOrCreateSourceID -Make necessary changes for the above (fix callsites, etc.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DwarfWriter.h')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index e4e4850..9ca7d7e 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -37,6 +37,7 @@ class GlobalVariable;
class TargetAsmInfo;
class raw_ostream;
class Instruction;
+class DICompileUnit;
class DISubprogram;
class DIVariable;
@@ -87,14 +88,7 @@ public:
/// 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.
- unsigned RecordSourceLine(unsigned Line, unsigned Col, unsigned Src);
-
- /// getOrCreateSourceID - Look up the source id with the given directory and
- /// source file names. If none currently exists, create a new id and insert it
- /// in the SourceIds map. This can update DirectoryIds and SourceFileIds maps
- /// as well.
- unsigned getOrCreateSourceID(const std::string &DirName,
- const std::string &FileName);
+ unsigned RecordSourceLine(unsigned Line, unsigned Col, DICompileUnit CU);
/// RecordRegionStart - Indicate the start of a region.
unsigned RecordRegionStart(GlobalVariable *V);
@@ -116,7 +110,7 @@ public:
//// RecordInlinedFnStart - Indicate the start of a inlined function.
void RecordInlinedFnStart(Instruction *I, DISubprogram &SP, unsigned LabelID,
- unsigned Src, unsigned Line, unsigned Col);
+ DICompileUnit CU, unsigned Line, unsigned Col);
/// RecordInlinedFnEnd - Indicate the end of inlined subroutine.
unsigned RecordInlinedFnEnd(DISubprogram &SP);