summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ClangAttrEmitter.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-11 23:06:52 +0000
committerEric Christopher <echristo@apple.com>2011-07-11 23:06:52 +0000
commit71520a867d5c3d34762cef78c10fe5b54324537e (patch)
tree5bdecbda90b566debd139bbdbcb1ac9ff29c7092 /llvm/utils/TableGen/ClangAttrEmitter.cpp
parent571419bae6765653c47967ba5462c6e06571a49c (diff)
downloadbcm5719-llvm-71520a867d5c3d34762cef78c10fe5b54324537e.tar.gz
bcm5719-llvm-71520a867d5c3d34762cef78c10fe5b54324537e.zip
Revert r134921, 134917, 134908 and 134907. They're causing failures
in multiple buildbots. llvm-svn: 134936
Diffstat (limited to 'llvm/utils/TableGen/ClangAttrEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/ClangAttrEmitter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/ClangAttrEmitter.cpp b/llvm/utils/TableGen/ClangAttrEmitter.cpp
index bca4bb61c24..26bd8786a49 100644
--- a/llvm/utils/TableGen/ClangAttrEmitter.cpp
+++ b/llvm/utils/TableGen/ClangAttrEmitter.cpp
@@ -21,19 +21,17 @@ using namespace llvm;
static const std::vector<StringRef>
getValueAsListOfStrings(Record &R, StringRef FieldName) {
- const ListInit *List = R.getValueAsListInit(FieldName);
+ ListInit *List = R.getValueAsListInit(FieldName);
assert (List && "Got a null ListInit");
std::vector<StringRef> Strings;
Strings.reserve(List->getSize());
- for (ListInit::const_iterator i = List->begin(), e = List->end();
- i != e;
- ++i) {
+ for (ListInit::iterator i = List->begin(), e = List->end(); i != e; ++i) {
assert(*i && "Got a null element in a ListInit");
- if (const StringInit *S = dynamic_cast<const StringInit *>(*i))
+ if (StringInit *S = dynamic_cast<StringInit *>(*i))
Strings.push_back(S->getValue());
- else if (const CodeInit *C = dynamic_cast<const CodeInit *>(*i))
+ else if (CodeInit *C = dynamic_cast<CodeInit *>(*i))
Strings.push_back(C->getValue());
else
assert(false && "Got a non-string, non-code element in a ListInit");
OpenPOWER on IntegriCloud