Driver: begin threading frontend support for SymbolRewriter
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Jan 2015 05:10:20 +0000 (05:10 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Jan 2015 05:10:20 +0000 (05:10 +0000)
commit76a4b95ad84a0fd23e34982cfb1b40b39ca2fb4d
treee8a835776bcfe4c3678cd88271c70ec38c02c0aa
parent7e87384592c45532d794ebf252fd5afe506427db
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
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CodeGenOptions.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/symbol-rewriter.c [new file with mode: 0644]