| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
|
|
|
|
| |
llvm-svn: 167211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Each option has a set of prefixes. When matching an argument such as
-funroll-loops. First the leading - is removed as it is a prefix. Then
a lower_bound search for "funroll-loops" is done against the option table by
option name. From there each option prefix + option name combination is tested
against the argument.
This allows us to support Microsoft style options where both / and - are valid
prefixes. It also simplifies the cases we already have where options come in
both - and -- forms. Almost every option for gnu-ld happens to have this form.
llvm-svn: 166444
|
|
|
|
| |
llvm-svn: 166347
|
|
|
|
|
|
| |
This seems to have introduced assertion hit when building compiler-rt.
llvm-svn: 166245
|
|
|
|
| |
llvm-svn: 166223
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author: Michael J. Spencer <bigcheesegs@gmail.com>
Date: Wed Oct 10 21:48:26 2012 +0000
[Options] make Option a value type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165663 91177308-0d34-0410-b5e6-96231b3b80d8
This reverts commit 0464fd5e4ce2193e786e5adcab6b828f9366dae3.
llvm-svn: 165667
|
|
|
|
| |
llvm-svn: 165663
|
|
|
|
|
|
|
| |
the Clang::ConstructJob() to the new ArgList::getLastArg() routine
with eight argument. That simplifies reusing of this code.
llvm-svn: 157633
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, only diagnostics thrown by the cc1 process were
actually honoring the diagnostic options given on the command line,
like -Werror.
Reuse the existing code in Frontend currently used for cc1,
adjusting it to not interpret -Wl, linker flags as warnings.
Also fix a faulty test exposed by this change.
It wasn't actually testing anything, and was giving this warning:
clang-3: warning: argument unused during compilation: '-verify'
Which -Werror didn't turn into an error because it was output
by the driver, not the cc1 process, and diagnostic options
weren't parsed by the driver. And you couldn't see the warning
when running the test suite.
Fixes PR12181.
Patch by Dylan Noblesmith <nobled@dreamwidth.org>.
llvm-svn: 152660
|
|
|
|
|
|
|
| |
(I was going to fix the TODO about DenseMap too, but
that would break self-host right now. See PR11922.)
llvm-svn: 149799
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clang driver. This involves a bunch of silly option parsing code to try
to carefully emulate GCC's options. Currently, this takes a conservative
approach, and unless all of the unsafe optimizations are enabled, none
of them are. The fine grained control doesn't seem particularly useful.
If it ever becomes useful, we can add that to LLVM first, and then
expose it here.
This also fixes a few tiny bugs in the flag management around
-fhonor-infinities and -fhonor-nans; the flags now form proper sets both
for enabling and disabling, with the last flag winning.
I've also implemented a moderately terrifying GCC feature where
a language change is also provided by the '-ffast-math' flag by defining
the __FAST_MATH__ preprocessor macro. This feature is tracked and
serialized in the frontend but it isn't used yet. A subsequent patch
will add the preprocessor macro and tests for it.
I've manually tested that codegen appears to respect this, but I've not
dug in enough to see if there is an easy way to test codegen options w/o
relying on the particulars of LLVM's optimizations.
llvm-svn: 147434
|
|
|
|
| |
llvm-svn: 140478
|
|
|
|
| |
llvm-svn: 137896
|
|
|
|
| |
llvm-svn: 137539
|
|
|
|
|
|
| |
Thanks to David Blaikie for pointing this out.
llvm-svn: 137051
|
|
|
|
|
|
|
|
|
| |
information including the fully preprocessed source file(s) and command line
arguments. The developer is asked to attach this diagnostic information to a
bug report.
rdar://9575623
llvm-svn: 136702
|
|
|
|
|
|
|
|
| |
LLVM.h imports
them into the clang namespace.
llvm-svn: 135852
|
|
|
|
| |
llvm-svn: 135621
|
|
|
|
|
|
|
|
|
| |
information
including the fully preprocessed source file(s) and command line arguments. The
developer is asked to attach this diagnostic information to a bug report.
llvm-svn: 135614
|
|
|
|
| |
llvm-svn: 134418
|
|
|
|
|
|
|
| |
open them in fundamental-mode instead of c++-mode.
Also twiddle whitespace for consistency in ToolChains.cpp.
llvm-svn: 122646
|
|
|
|
|
|
|
|
| |
agressive. Now we
don't warn if an argument is not used because it is shadowed by a subsequent argument.
llvm-svn: 122281
|
|
|
|
|
|
| |
clarify that they are not modified, and to allow for string literals as arguments.
llvm-svn: 116200
|
|
|
|
|
|
| |
are explicitly given.
llvm-svn: 108297
|
|
|
|
| |
llvm-svn: 105958
|
|
|
|
|
|
| |
are going to need this to handle things like -Xassembler, -Xpreprocessor, and -Xlinker which we might have to introspect.
llvm-svn: 105842
|
|
|
|
| |
llvm-svn: 105841
|
|
|
|
|
|
| |
over Arg*s.
llvm-svn: 105838
|
|
|
|
| |
llvm-svn: 105762
|
|
|
|
|
|
| |
deriving them from the Arg type.
llvm-svn: 105760
|
|
|
|
|
|
| |
they can be independent of the exact option that created them.
llvm-svn: 105739
|
|
|
|
| |
llvm-svn: 104432
|
|
|
|
| |
llvm-svn: 104371
|
|
|
|
| |
llvm-svn: 104237
|
|
|
|
| |
llvm-svn: 98262
|
|
|
|
| |
llvm-svn: 98174
|
|
|
|
| |
llvm-svn: 89860
|
|
|
|
| |
llvm-svn: 89310
|
|
|
|
|
|
|
|
| |
of taking a Claim argument.
- Most driver code always claims, and bool arguments don't play nice with the overloads.
llvm-svn: 89308
|
|
|
|
| |
llvm-svn: 81385
|
|
|
|
| |
llvm-svn: 81346
|
|
|
|
|
|
|
|
| |
function attributes. There are predefined macros that are defined when stack
protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with
-fstack-protector-all.
llvm-svn: 74405
|
|
|
|
|
|
| |
should be joined or separate.
llvm-svn: 70101
|
|
|
|
| |
llvm-svn: 68549
|
|
|
|
|
|
| |
need to do anything special to support this.
llvm-svn: 68403
|
|
|
|
|
|
|
| |
- <rdar://problem/6726511> [driver] clang does not have -msoft-float
hooked up.
llvm-svn: 68044
|
|
|
|
|
|
|
| |
we can properly claim arguments, even if they have been translated by
the tool chain.
llvm-svn: 68020
|
|
|
|
|
|
|
| |
tools with the name of the option replace, and arguments rendered
separately.
llvm-svn: 67753
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Lift ArgList to a base class for InputArgList and DerivedArgList.
- This is not a great decomposition, but it does embed the
translation into the type system, and keep things efficient for
tool chains that don't want to do any translation.
- No intended functionality change.
Eventually I hope to get rid of tool chain specific translation and
have each tool do the right thing, but for now this is the easiest way
to match gcc precisely (which is good for testing).
llvm-svn: 67676
|