summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCTargetOptions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sort the remaining #include lines in include/... and lib/....Chandler Carruth2017-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | I did this a long time ago with a janky python script, but now clang-format has built-in support for this. I fed clang-format every line with a #include and let it re-sort things according to the precise LLVM rules for include ordering baked into clang-format these days. I've reverted a number of files where the results of sorting includes isn't healthy. Either places where we have legacy code relying on particular include ordering (where possible, I'll fix these separately) or where we have particular formatting around #include lines that I didn't want to disturb in this patch. This patch is *entirely* mechanical. If you get merge conflicts or anything, just ignore the changes in this patch and run clang-format over your #include lines in the files. Sorry for any noise here, but it is important to keep these things stable. I was seeing an increasing number of patches with irrelevant re-ordering of #include lines because clang-format was used. This patch at least isolates that churn, makes it easy to skip when resolving conflicts, and gets us to a clean baseline (again). llvm-svn: 304787
* [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other ↵Eugene Zelenko2017-02-101-9/+6
| | | | | | minor fixes (NFC). llvm-svn: 294685
* Summary: Currently there is no way to disable deprecated warning from asm ↵Weiming Zhao2016-12-051-1/+2
| | | | | | | | | | | | | | | | | | | | like this clang -target arm deprecated-asm.s -c deprecated-asm.s:30:9: warning: use of SP or PC in the list is deprecated stmia r4!, {r12-r14} We have to have an option what can disable it. Patched by Yin Ma! Reviewers: joey, echristo, weimingz Subscribers: llvm-commits, aemerson Differential Revision: https://reviews.llvm.org/D27219 llvm-svn: 288734
* New llc option pie-copy-relocations to optimize access to extern globals.Sriraman Tallam2016-10-131-1/+2
| | | | | | | | | This option indicates copy relocations support is available from the linker when building as PIE and allows accesses to extern globals to avoid the GOT. Differential Revision: https://reviews.llvm.org/D24849 llvm-svn: 284160
* Initialize PreserveAsmComments in MCTargetOptionsNirav Dave2016-07-271-1/+1
| | | | llvm-svn: 276905
* [MC, COFF] Support link /incremental conditionallyDavid Majnemer2015-12-211-2/+3
| | | | | | | | | | | | | | | | Today, we always take into account the possibility that object files produced by MC may be consumed by an incremental linker. This results in us initialing fields which vary with time (TimeDateStamp) which harms hermetic builds (e.g. verifying a self-host went well) and produces sub-optimal code because we cannot assume anything about the relative position of functions within a section (call sites can get redirected through incremental linker thunks). Let's provide an MCTargetOption which controls this behavior so that we can disable this functionality if we know a-priori that the build will not rely on /incremental. llvm-svn: 256203
* [llvm-mc] Add --no-warn flag with -W alias to disable outputting warnings ↵Colin LeMahieu2015-07-271-1/+1
| | | | | | while assembling. llvm-svn: 243338
* Migrate ABIName to MCTargetOptions so that it can be shared betweenEric Christopher2015-01-141-1/+6
| | | | | | the TargetMachine level and the MC level. llvm-svn: 225891
* Convert MC command line option for fatal assembler warnings into aJoerg Sonnenberger2014-08-261-3/+3
| | | | | | proper flag. llvm-svn: 216471
* Move -dwarf-version to an MC level command line option so it'sEric Christopher2014-06-191-1/+2
| | | | | | | used by all of the MC level tools and codegen. Fix up all uses in the compiler to use this and set it on the context accordingly. llvm-svn: 211257
* Move the verbose asm option to be part of the options struct andEric Christopher2014-05-201-1/+1
| | | | | | set appropriately. llvm-svn: 209258
* Move more MC options into the MCTargetOptions structure.Eric Christopher2014-05-151-1/+2
| | | | | | No functional change. llvm-svn: 208932
* Move the TargetMachine MC options to MCTargetOptions. No functionalEric Christopher2014-05-151-1/+3
| | | | | | change. llvm-svn: 208832
* Create MCTargetOptions.Evgeniy Stepanov2014-04-231-0/+16
For now it contains a single flag, SanitizeAddress, which enables AddressSanitizer instrumentation of inline assembly. Patch by Yuri Gorshenin. llvm-svn: 206971
OpenPOWER on IntegriCloud