summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2016-12-05 23:55:13 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2016-12-05 23:55:13 +0000
commitb38cfced8d6737b5652f9c6240b05cf8c3c6e677 (patch)
treed2b28bcc4b28b35626fd265d043db2343349ff86 /llvm/lib/MC
parentca648c9787c7c82ddb9b1c13353df46d085fa366 (diff)
downloadbcm5719-llvm-b38cfced8d6737b5652f9c6240b05cf8c3c6e677.tar.gz
bcm5719-llvm-b38cfced8d6737b5652f9c6240b05cf8c3c6e677.zip
Summary: Currently there is no way to disable deprecated warning from asm 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
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCTargetOptions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCTargetOptions.cpp b/llvm/lib/MC/MCTargetOptions.cpp
index e847a17dfec..419210537ee 100644
--- a/llvm/lib/MC/MCTargetOptions.cpp
+++ b/llvm/lib/MC/MCTargetOptions.cpp
@@ -14,7 +14,8 @@ namespace llvm {
MCTargetOptions::MCTargetOptions()
: SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
- MCFatalWarnings(false), MCNoWarn(false), MCSaveTempLabels(false),
+ MCFatalWarnings(false), MCNoWarn(false), MCNoDeprecatedWarn(false),
+ MCSaveTempLabels(false),
MCUseDwarfDirectory(false), MCIncrementalLinkerCompatible(false),
MCPIECopyRelocations(false), ShowMCEncoding(false),
ShowMCInst(false), AsmVerbose(false),
OpenPOWER on IntegriCloud