diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-01-09 05:10:20 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-01-09 05:10:20 +0000 |
commit | 76a4b95ad84a0fd23e34982cfb1b40b39ca2fb4d (patch) | |
tree | e8a835776bcfe4c3678cd88271c70ec38c02c0aa /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7e87384592c45532d794ebf252fd5afe506427db (diff) | |
download | bcm5719-llvm-76a4b95ad84a0fd23e34982cfb1b40b39ca2fb4d.tar.gz bcm5719-llvm-76a4b95ad84a0fd23e34982cfb1b40b39ca2fb4d.zip |
Driver: begin threading frontend support for SymbolRewriter
Allow blessed access to the symbol rewriter from the driver. Although the
symbol rewriter could be invoked through tools like opt and llc, it would not
accessible from the frontend. This allows us to read the rewrite map files in
the frontend rather than the backend and enable symbol rewriting for actually
performing the symbol interpositioning.
llvm-svn: 225504
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 5b344284139..d630b5bf5c4 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -594,6 +594,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, if (NeedLocTracking && Opts.getDebugInfo() == CodeGenOptions::NoDebugInfo) Opts.setDebugInfo(CodeGenOptions::LocTrackingOnly); + Opts.RewriteMapFiles = Args.getAllArgValues(OPT_frewrite_map_file); + return Success; } |