summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-12 22:39:36 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-12 22:39:36 +0000
commit1daa3cfbae60569c33a0c695f10fb4ccf243a173 (patch)
treeca998daf9a0daf346031c7619359511c22ef4bef /clang/Driver/clang.cpp
parentf44cb63859352415ea2a1b3a04b51131eacf1d1f (diff)
downloadbcm5719-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.cpp3
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);
OpenPOWER on IntegriCloud