diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-05 21:34:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-05 21:34:36 +0000 |
commit | acc9f337e70a77eea05fe96ac155e05a93c8bbae (patch) | |
tree | cf2d420de3da9792c424e9d18c848d36911c2213 /Driver/Targets.cpp | |
parent | 589fd42d71cf5713aec3bd44b49382fba46ec5a9 (diff) |
Modified: CreateTargetInfo(). Now takes Diagnostic* instead of Diagnostic&.
Modified: ctor of SerializationTest: Now takes LangOptions argument. We
will eventually serialize this as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/Targets.cpp')
-rw-r--r-- | Driver/Targets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/Targets.cpp b/Driver/Targets.cpp index 336beb925d..63df5d48c8 100644 --- a/Driver/Targets.cpp +++ b/Driver/Targets.cpp @@ -691,7 +691,7 @@ static TargetInfoImpl *CreateTarget(const std::string& T) { /// CreateTargetInfo - Return the set of target info objects as specified by /// the -arch command line option. TargetInfo *clang::CreateTargetInfo(const std::vector<std::string>& triples, - Diagnostic &Diags) { + Diagnostic *Diags) { assert (!triples.empty() && "No target triple."); @@ -701,7 +701,7 @@ TargetInfo *clang::CreateTargetInfo(const std::vector<std::string>& triples, if (!PrimaryTarget) return NULL; - TargetInfo *TI = new TargetInfo(PrimaryTarget, &Diags); + TargetInfo *TI = new TargetInfo(PrimaryTarget, Diags); // Add all secondary targets. for (unsigned i = 1, e = triples.size(); i != e; ++i) { |