aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/explicit-build-flags.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-06-23Restructure the propagation of -fPIC/-fPIE.Rafael Espindola1-1/+1
The PIC and PIE levels are not independent. In fact, if PIE is defined it is always the same as PIC. This is clear in the driver where ParsePICArgs returns a PIC level and a IsPIE boolean. Unfortunately that is currently lost and we pass two redundant levels down the pipeline. This patch keeps a bool and a PIC level all the way down to codegen. llvm-svn: 273566
2016-04-07Replace Sema-level implementation of -fassume-sane-operator-new with aRichard Smith1-0/+3
CodeGen-level implementation. Instead of adding an attribute to clang's FunctionDecl, add the IR attribute directly. This means a module built with this flag is now compatible with code built without it and vice versa. This change also results in the 'noalias' attribute no longer being added to calls to operator new in the IR; it's now only added to the declaration. It also fixes a bug where we failed to add the attribute to the 'nothrow' versions (because we didn't implicitly declare them, there was no good time to inject a fake attribute). llvm-svn: 265728
2016-04-07[modules] Allow differences in flags that only affect preprocessor predefinesRichard Smith1-2/+14
(and __has_feature checks) between explicitly-specified module files and the current compilation. llvm-svn: 265718
2014-11-04clang/test/Modules: Remove "REQUIRES:shell" since they work for me.NAKAMURA Takumi1-2/+0
llvm-svn: 221261
2014-10-31[modules] When a .pcm file is explicitly built separately from the translationRichard Smith1-0/+7
unit, allow the -O settings of the two compilations to differ. llvm-svn: 220943
2014-10-28Extend test to check that -D flags do not leak across module boundaries.Richard Smith1-3/+20
llvm-svn: 220782
2014-10-28[modules] Allow -I, -D, -W flags to change between building a module andRichard Smith1-0/+27
explicitly using the resulting .pcm file. Unlike for an implicit module build, we don't need nor want to require these flags to match between the module and its users. llvm-svn: 220780