summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
diff options
context:
space:
mode:
authorCedric Venet <cedric.venet@laposte.net>2008-12-05 13:37:30 +0000
committerCedric Venet <cedric.venet@laposte.net>2008-12-05 13:37:30 +0000
commitaf333378c9ad8060f31cc9dfa2ed654a04743bb7 (patch)
tree099f9d24a486ebb6e30a06a546ffa3f3dde3a6a9 /llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
parentd2a653af0c11b1b51d13bdc5f19cfbb07861f38d (diff)
downloadbcm5719-llvm-af333378c9ad8060f31cc9dfa2ed654a04743bb7.tar.gz
bcm5719-llvm-af333378c9ad8060f31cc9dfa2ed654a04743bb7.zip
The use of the construct:
for(Type1 B = ...;;) { Type2 B ; ... } is bad: code is hard to read and VS VS don't like it (it ignore the second declaration of B). This patch fix the problem in tablegen. Please don't write code like this. llvm-svn: 60590
Diffstat (limited to 'llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
index fc9553ed268..97ea3d68346 100644
--- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
+++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -1548,9 +1548,9 @@ void TypecheckGraph (const RecordVector& EdgeVector,
StringMap<std::string>::iterator IAE = ToolToOutLang.end();
StringMap<StringSet<> >::iterator IBE = ToolToInLang.end();
- for (RecordVector::const_iterator B = EdgeVector.begin(),
- E = EdgeVector.end(); B != E; ++B) {
- const Record* Edge = *B;
+ for (RecordVector::const_iterator Beg = EdgeVector.begin(),
+ E = EdgeVector.end(); Beg != E; ++Beg) {
+ const Record* Edge = *Beg;
const std::string& A = Edge->getValueAsString("a");
const std::string& B = Edge->getValueAsString("b");
StringMap<std::string>::iterator IA = ToolToOutLang.find(A);
@@ -1615,9 +1615,9 @@ void EmitEdgeClasses (const RecordVector& EdgeVector,
const GlobalOptionDescriptions& OptDescs,
std::ostream& O) {
int i = 0;
- for (RecordVector::const_iterator B = EdgeVector.begin(),
- E = EdgeVector.end(); B != E; ++B) {
- const Record* Edge = *B;
+ for (RecordVector::const_iterator Beg = EdgeVector.begin(),
+ E = EdgeVector.end(); Beg != E; ++Beg) {
+ const Record* Edge = *Beg;
const std::string& B = Edge->getValueAsString("b");
DagInit* Weight = Edge->getValueAsDag("weight");
@@ -1645,9 +1645,9 @@ void EmitPopulateCompilationGraph (const RecordVector& EdgeVector,
// Insert edges.
int i = 0;
- for (RecordVector::const_iterator B = EdgeVector.begin(),
- E = EdgeVector.end(); B != E; ++B) {
- const Record* Edge = *B;
+ for (RecordVector::const_iterator Beg = EdgeVector.begin(),
+ E = EdgeVector.end(); Beg != E; ++Beg) {
+ const Record* Edge = *Beg;
const std::string& A = Edge->getValueAsString("a");
const std::string& B = Edge->getValueAsString("b");
DagInit* Weight = Edge->getValueAsDag("weight");
@@ -1800,10 +1800,10 @@ void FilterNotInGraph (const RecordVector& EdgeVector,
// List all tools mentioned in the graph.
llvm::StringSet<> ToolsInGraph;
- for (RecordVector::const_iterator B = EdgeVector.begin(),
- E = EdgeVector.end(); B != E; ++B) {
+ for (RecordVector::const_iterator Beg = EdgeVector.begin(),
+ E = EdgeVector.end(); Beg != E; ++Beg) {
- const Record* Edge = *B;
+ const Record* Edge = *Beg;
const std::string& A = Edge->getValueAsString("a");
const std::string& B = Edge->getValueAsString("b");
OpenPOWER on IntegriCloud