[llvm] r286946 - Fix -Wunused introduced in r286945 for release builds.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 02:13:09 PST 2016
Author: dsanders
Date: Tue Nov 15 04:13:09 2016
New Revision: 286946
URL: http://llvm.org/viewvc/llvm-project?rev=286946&view=rev
Log:
Fix -Wunused introduced in r286945 for release builds.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=286946&r1=286945&r2=286946&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Tue Nov 15 04:13:09 2016
@@ -1418,8 +1418,10 @@ void AsmMatcherInfo::buildInfo() {
&SubtargetFeaturePairs = SubtargetFeatureInfo::getAll(Records);
SubtargetFeatures.insert(SubtargetFeaturePairs.begin(),
SubtargetFeaturePairs.end());
+#ifndef NDEBUG
for (const auto &Pair : SubtargetFeatures)
DEBUG(Pair.second.dump());
+#endif // NDEBUG
assert(SubtargetFeatures.size() <= 64 && "Too many subtarget features!");
bool HasMnemonicFirst = AsmParser->getValueAsBit("HasMnemonicFirst");
More information about the llvm-commits
mailing list