summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2014-12-04 21:39:24 +0000
committerRoman Divacky <rdivacky@freebsd.org>2014-12-04 21:39:24 +0000
commit6fd64ff577fab9a2f1d3f8383c6b3a95d543d9f6 (patch)
tree5751e4209accebc345421847227b3407bed5e028 /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parentd908941236f83007373af83eaa6e25af03faab27 (diff)
downloadbcm5719-llvm-6fd64ff577fab9a2f1d3f8383c6b3a95d543d9f6.tar.gz
bcm5719-llvm-6fd64ff577fab9a2f1d3f8383c6b3a95d543d9f6.zip
Add a FIXME as requested by Renato Golin.
llvm-svn: 223390
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index f291fe4a4dd..b080c92820f 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -9111,6 +9111,9 @@ bool ARMAsmParser::parseDirectiveCPU(SMLoc L) {
return false;
}
+ // FIXME: This switches the CPU features globally, therefore it might
+ // happen that code you would not expect to assemble will. For details
+ // see: http://llvm.org/bugs/show_bug.cgi?id=20757
STI.InitMCProcessorInfo(CPU, "");
STI.InitCPUSchedModel(CPU);
unsigned FB = ComputeAvailableFeatures(STI.getFeatureBits());
OpenPOWER on IntegriCloud