[PATCH] [clang][Driver][MCTargetOptions]Change clang driver to adopt new definition of createAsmBackend
echristo at gmail.com
Fri Feb 20 09:54:55 PST 2015
On Fri Feb 20 2015 at 6:10:02 AM Vladimir Medic <Vladimir.Medic at imgtec.com>
> Comment at: tools/driver/cc1as_main.cpp:358
> @@ -357,2 +357,3 @@
> TheTarget->createMCSubtargetInfo(Opts.Triple, Opts.CPU, FS));
> + MCTargetOptions Options = InitMCTargetOptionsFromFlags();
> echristo wrote:
> > I'd prefer not to do this, clang already has its own option handling.
> Ideas on how to avoid this?
> Not right now, at least not a simple one. The FIXME comment that was
> removed said:"init MCTargetOptions from sanitizer flags here." So we should
> probably need to map clang options to MCTargetOptions.
I think we should do that.
In particular here you should map the -mabi option.
> EMAIL PREFERENCES
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits