diff options
-rw-r--r-- | tools/clang-cc/clang-cc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index ec9a43fcec..f718fef374 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -794,6 +794,10 @@ ConstructCompilerInvocation(CompilerInvocation &Opts, Diagnostic &Diags, // Initialize frontend options. InitializeFrontendOptions(Opts.getFrontendOpts()); + // FIXME: The target information in frontend options should be split out into + // TargetOptions, and the target options in codegen options should move there + // as well. Then we could properly initialize in layering order. + // Initialize base triple. If a -triple option has been specified, use // that triple. Otherwise, default to the host triple. llvm::Triple Triple(Opts.getFrontendOpts().TargetTriple); |