diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-31 17:25:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-31 17:25:35 +0000 |
commit | 30e631862f647b5eb7c05b25248d960d7ecae20b (patch) | |
tree | a32c221a34079b6bdfd525ef601fbdb717212875 /clang/lib/Basic/Diagnostic.cpp | |
parent | 4cd5866f8ead15aa2634bd63bff4975aa2e395fb (diff) | |
download | bcm5719-llvm-30e631862f647b5eb7c05b25248d960d7ecae20b.tar.gz bcm5719-llvm-30e631862f647b5eb7c05b25248d960d7ecae20b.zip |
Revert r100008, which inexplicably breaks the clang-i686-darwin10 builder
llvm-svn: 100018
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 2b7fcd07f9d..9b8bae31427 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -571,7 +571,7 @@ bool DiagnosticBuilder::Emit() { // the Diagnostic object. DiagObj->NumDiagArgs = NumArgs; DiagObj->NumDiagRanges = NumRanges; - DiagObj->NumFixItHints = NumFixItHints; + DiagObj->NumCodeModificationHints = NumCodeModificationHints; // Process the diagnostic, sending the accumulated information to the // DiagnosticClient. @@ -996,9 +996,9 @@ StoredDiagnostic::StoredDiagnostic(Diagnostic::Level Level, for (unsigned I = 0, N = Info.getNumRanges(); I != N; ++I) Ranges.push_back(Info.getRange(I)); - FixIts.reserve(Info.getNumFixItHints()); - for (unsigned I = 0, N = Info.getNumFixItHints(); I != N; ++I) - FixIts.push_back(Info.getFixItHint(I)); + FixIts.reserve(Info.getNumCodeModificationHints()); + for (unsigned I = 0, N = Info.getNumCodeModificationHints(); I != N; ++I) + FixIts.push_back(Info.getCodeModificationHint(I)); } StoredDiagnostic::~StoredDiagnostic() { } @@ -1231,7 +1231,7 @@ StoredDiagnostic::Deserialize(FileManager &FM, SourceManager &SM, return Diag; } - FixItHint Hint; + CodeModificationHint Hint; Hint.RemoveRange = SourceRange(RemoveBegin, RemoveEnd); Hint.InsertionLoc = InsertionLoc; Hint.CodeToInsert.assign(Memory, Memory + InsertLen); |