summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-11-21 22:19:50 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-11-21 22:19:50 +0000
commit8dd552db2995f3ba2148d21863a09f860079b85a (patch)
tree067a874e6da5633620933bdf42939162d50f5f10 /llvm/utils
parente79b09a6163f3350757cd63087617d0cb77c4114 (diff)
downloadbcm5719-llvm-8dd552db2995f3ba2148d21863a09f860079b85a.tar.gz
bcm5719-llvm-8dd552db2995f3ba2148d21863a09f860079b85a.zip
Fix warnings in NDEBUG build
llvm-svn: 253798
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/DFAPacketizerEmitter.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/DFAPacketizerEmitter.cpp b/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
index fc70e97d7e2..4e6961eb877 100644
--- a/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
+++ b/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
@@ -217,6 +217,7 @@ public:
};
} // End anonymous namespace.
+#ifndef NDEBUG
// To enable debugging, run llvm-tblgen with: "-debug-only dfa-emitter".
//
// dbgsInsnClass - When debugging, print instruction class stages.
@@ -257,6 +258,7 @@ void dbgsIndent(unsigned indent) {
DEBUG(dbgs() << " ");
}
}
+#endif
//
// Constructors and destructors for State and DFA
@@ -605,12 +607,11 @@ int DFAPacketizerEmitter::collectAllFuncUnits(
// Parse functional units for all the itineraries.
for (unsigned i = 0, N = ProcItinList.size(); i < N; ++i) {
Record *Proc = ProcItinList[i];
- const std::string &ProcName = Proc->getName();
std::vector<Record*> FUs = Proc->getValueAsListOfDefs("FU");
DEBUG(dbgs() << " FU:" << i
<< " (" << FUs.size() << " FUs) "
- << ProcName);
+ << Proc->getName());
// Convert macros to bits for each stage.
@@ -648,12 +649,11 @@ int DFAPacketizerEmitter::collectAllComboFuncs(
int numCombos = 0;
for (unsigned i = 0, N = ComboFuncList.size(); i < N; ++i) {
Record *Func = ComboFuncList[i];
- const std::string &ProcName = Func->getName();
std::vector<Record*> FUs = Func->getValueAsListOfDefs("CFD");
DEBUG(dbgs() << " CFD:" << i
<< " (" << FUs.size() << " combo FUs) "
- << ProcName << "\n");
+ << Func->getName() << "\n");
// Convert macros to bits for each stage.
for (unsigned j = 0, N = FUs.size(); j < N; ++j) {
@@ -694,16 +694,13 @@ int DFAPacketizerEmitter::collectOneInsnClass(const std::string &ProcName,
std::map<std::string, unsigned> &FUNameToBitsMap,
Record *ItinData,
raw_ostream &OS) {
- // Collect instruction classes.
- Record *ItinDef = ItinData->getValueAsDef("TheClass");
-
const std::vector<Record*> &StageList =
ItinData->getValueAsListOfDefs("Stages");
// The number of stages.
unsigned NStages = StageList.size();
- DEBUG(dbgs() << " " << ItinDef->getName()
+ DEBUG(dbgs() << " " << ItinData->getValueAsDef("TheClass")->getName()
<< "\n");
std::vector<unsigned> UnitBits;
OpenPOWER on IntegriCloud