diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-12 18:05:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-12 18:05:32 +0000 |
commit | bbced580c92afa09cd4423a9bdc90ff61cb1e79a (patch) | |
tree | f5ca4a43ebfb2331df4cdb96ca52f8f46c704793 /Driver/clang.cpp | |
parent | 23c3bb768fd3eb24ff1a7402856405129afac0e3 (diff) |
Moved construction of TargetInfo objects out of the Driver
and into the "Basic" library. TargetInfo objects are now
constructed from triples by calling the static method
TargetInfo::CreateTargetInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index b526bb157f..316b93a64d 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -1019,7 +1019,10 @@ int main(int argc, char **argv) { // Create triples, and create the TargetInfo. std::vector<std::string> triples; CreateTargetTriples(triples); - Target = CreateTargetInfo(SourceMgr,triples,&Diags); + Target = TargetInfo::CreateTargetInfo(SourceMgr, + &triples[0], + &triples[0]+triples.size(), + &Diags); if (Target == 0) { fprintf(stderr, "Sorry, I don't know what target this is: %s\n", |