aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-26 21:22:49 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-26 21:22:49 +0000
commit6e87c0e029c011b9ee61068c607080ca4934378a (patch)
tree461d03d7672523772cac862a4a47d2f4089a5403 /include/llvm/CodeGen
parent9471c8a93b117d8ac01c4ef1cb9faa583e03dec0 (diff)
downloadexternal_llvm-6e87c0e029c011b9ee61068c607080ca4934378a.tar.gz
external_llvm-6e87c0e029c011b9ee61068c607080ca4934378a.tar.bz2
external_llvm-6e87c0e029c011b9ee61068c607080ca4934378a.zip
Use global information to fill out Dwarf compile units.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/DwarfWriter.h5
-rw-r--r--include/llvm/CodeGen/MachineDebugInfo.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h
index f199dd25fd..aec1077eed 100644
--- a/include/llvm/CodeGen/DwarfWriter.h
+++ b/include/llvm/CodeGen/DwarfWriter.h
@@ -32,6 +32,7 @@ namespace llvm {
// Forward declarations.
//
class AsmPrinter;
+ class CompileUnitWrapper;
class DIE;
class DwarfWriter;
class DWContext;
@@ -645,10 +646,10 @@ public:
unsigned Size, unsigned Align);
private:
+
/// NewCompileUnit - Create new compile unit information.
///
- DIE *NewCompileUnit(const std::string &Directory,
- const std::string &SourceName);
+ DIE *DwarfWriter::NewCompileUnit(const CompileUnitWrapper &CompileUnit);
/// EmitInitial - Emit initial Dwarf declarations.
///
diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h
index 7bbd11db7a..fcd75f4749 100644
--- a/include/llvm/CodeGen/MachineDebugInfo.h
+++ b/include/llvm/CodeGen/MachineDebugInfo.h
@@ -271,6 +271,10 @@ public:
///
void MachineDebugInfo::SetupCompileUnits(Module &M);
+ /// getCompileUnits - Return a vector of debug compile units.
+ ///
+ const UniqueVector<CompileUnitWrapper> getCompileUnits() const;
+
/// getGlobalVariables - Return a vector of debug global variables.
///
static std::vector<GlobalWrapper> getGlobalVariables(Module &M);