diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-12-12 22:39:36 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-12-12 22:39:36 +0000 |
| commit | 1daa3cfbae60569c33a0c695f10fb4ccf243a173 (patch) | |
| tree | ca998daf9a0daf346031c7619359511c22ef4bef /clang/Driver/clang.cpp | |
| parent | f44cb63859352415ea2a1b3a04b51131eacf1d1f (diff) | |
| download | bcm5719-llvm-1daa3cfbae60569c33a0c695f10fb4ccf243a173.tar.gz bcm5719-llvm-1daa3cfbae60569c33a0c695f10fb4ccf243a173.zip | |
TargetInfo no longer includes a reference to SourceManager.
Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation.
Added many utility methods to FullSourceLoc to provide shorthand for:
FullLoc.getManager().someMethod(FullLoc.getLocation());
instead we have:
FullLoc.someMethod();
Modified TextDiagnostics (and related classes) to use this short-hand.
llvm-svn: 44957
Diffstat (limited to 'clang/Driver/clang.cpp')
| -rw-r--r-- | clang/Driver/clang.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 316b93a64dc..e827c9e7481 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -1019,8 +1019,7 @@ int main(int argc, char **argv) { // Create triples, and create the TargetInfo. std::vector<std::string> triples; CreateTargetTriples(triples); - Target = TargetInfo::CreateTargetInfo(SourceMgr, - &triples[0], + Target = TargetInfo::CreateTargetInfo(&triples[0], &triples[0]+triples.size(), &Diags); |

