aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 05:32:45 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 05:32:45 +0000
commit2b1b3312e043858e89b0b1eddc2f839bef892c8d (patch)
tree9ab2547be6dcd84cd1907c8bdbb739f601f10566
parent105d69759312a9544ec55954b3fb59bdb7e224df (diff)
privatize more stuff, eliminate vtables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100410 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h54
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.h2
2 files changed, 28 insertions, 28 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 323234cf08..31e4885eab 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -519,40 +519,17 @@ private:
///
DIType getBlockByrefType(DIType Ty, std::string Name);
-public:
- //===--------------------------------------------------------------------===//
- // Main entry points.
- //
- DwarfDebug(AsmPrinter *A, Module *M);
- virtual ~DwarfDebug();
-
- /// beginModule - Emit all Dwarf sections that should come prior to the
- /// content.
- void beginModule(Module *M);
-
- /// endModule - Emit all Dwarf sections that should come after the content.
- ///
- void endModule();
-
- /// beginFunction - Gather pre-function debug information. Assumes being
- /// emitted immediately after the function entry point.
- void beginFunction(const MachineFunction *MF);
-
- /// endFunction - Gather and emit post-function debug information.
- ///
- void endFunction(const MachineFunction *MF);
-
/// recordSourceLine - Register a source line with debug info. Returns the
/// unique label that was emitted and which provides correspondence to
/// the source line list.
MCSymbol *recordSourceLine(unsigned Line, unsigned Col, MDNode *Scope);
-
+
/// getSourceLineCount - Return the number of source lines in the debug
/// info.
unsigned getSourceLineCount() const {
return Lines.size();
}
-
+
/// getOrCreateSourceID - Public version of GetOrCreateSourceID. This can be
/// timed. 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
@@ -560,13 +537,36 @@ public:
/// well.
unsigned getOrCreateSourceID(const std::string &DirName,
const std::string &FileName);
-
+
/// extractScopeInformation - Scan machine instructions in this function
/// and collect DbgScopes. Return true, if atleast one scope was found.
bool extractScopeInformation();
-
+
/// collectVariableInfo - Populate DbgScope entries with variables' info.
void collectVariableInfo();
+
+public:
+ //===--------------------------------------------------------------------===//
+ // Main entry points.
+ //
+ DwarfDebug(AsmPrinter *A, Module *M);
+ ~DwarfDebug();
+
+ /// beginModule - Emit all Dwarf sections that should come prior to the
+ /// content.
+ void beginModule(Module *M);
+
+ /// endModule - Emit all Dwarf sections that should come after the content.
+ ///
+ void endModule();
+
+ /// beginFunction - Gather pre-function debug information. Assumes being
+ /// emitted immediately after the function entry point.
+ void beginFunction(const MachineFunction *MF);
+
+ /// endFunction - Gather and emit post-function debug information.
+ ///
+ void endFunction(const MachineFunction *MF);
/// beginScope - Process beginning of a scope.
void beginScope(const MachineInstr *MI);
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.h b/lib/CodeGen/AsmPrinter/DwarfException.h
index 6d6d730d5d..f35c0b616c 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.h
+++ b/lib/CodeGen/AsmPrinter/DwarfException.h
@@ -176,7 +176,7 @@ public:
// Main entry points.
//
DwarfException(AsmPrinter *A);
- virtual ~DwarfException();
+ ~DwarfException();
/// EndModule - Emit all exception information that should come after the
/// content.