[cfe-commits] r118384 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Nov 7 14:57:16 PST 2010
Author: rafael
Date: Sun Nov 7 16:57:16 2010
New Revision: 118384
URL: http://llvm.org/viewvc/llvm-project?rev=118384&view=rev
Log:
Add support for -rdynamic.
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=118384&r1=118383&r2=118384&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Sun Nov 7 16:57:16 2010
@@ -566,6 +566,7 @@
def remap : Flag<"-remap">;
def rewrite_objc : Flag<"-rewrite-objc">, Flags<[DriverOption]>,
HelpText<"Rewrite Objective-C source to C++">;
+def rdynamic : Flag<"-rdynamic">;
def rpath : Separate<"-rpath">, Flags<[LinkerInput]>;
def r : Flag<"-r">;
def save_temps : Flag<"-save-temps">, Flags<[DriverOption]>,
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=118384&r1=118383&r2=118384&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Nov 7 16:57:16 2010
@@ -3151,6 +3151,9 @@
CmdArgs.push_back(A->getValue(Args));
}
+ if (Args.hasArg(options::OPT_rdynamic))
+ CmdArgs.push_back("-export-dynamic");
+
for (std::vector<std::string>::const_iterator i = ToolChain.ExtraOpts.begin(),
e = ToolChain.ExtraOpts.end();
i != e; ++i)
More information about the cfe-commits
mailing list