aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineDebugInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/MachineDebugInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineDebugInfo.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineDebugInfo.h b/include/llvm/CodeGen/MachineDebugInfo.h
index c559b6b66d..a031ad0c6f 100644
--- a/include/llvm/CodeGen/MachineDebugInfo.h
+++ b/include/llvm/CodeGen/MachineDebugInfo.h
@@ -967,7 +967,7 @@ private:
UniqueVector<SourceFileInfo> SourceFiles;
// Lines - List of of source line correspondence.
- std::vector<SourceLineInfo *> Lines;
+ std::vector<SourceLineInfo> Lines;
// LabelID - Current number assigned to unique label numbers.
unsigned LabelID;
@@ -1049,10 +1049,15 @@ public:
/// getSourceLines - Return a vector of source lines.
///
- std::vector<SourceLineInfo *> &getSourceLines() {
+ const std::vector<SourceLineInfo> &getSourceLines() const {
return Lines;
}
+ // FIXME: nuke this.
+ void ClearLineInfo() {
+ Lines.clear();
+ }
+
/// SetupCompileUnits - Set up the unique vector of compile units.
///
void SetupCompileUnits(Module &M);