[cfe-commits] r148095 - /cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jan 12 20:57:47 PST 2012
Author: stoklund
Date: Thu Jan 12 22:57:47 2012
New Revision: 148095
URL: http://llvm.org/viewvc/llvm-project?rev=148095&view=rev
Log:
CodeInit was replaced by StringInit.
Modified:
cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp?rev=148095&r1=148094&r2=148095&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Thu Jan 12 22:57:47 2012
@@ -33,8 +33,6 @@
assert(*i && "Got a null element in a ListInit");
if (StringInit *S = dynamic_cast<StringInit *>(*i))
Strings.push_back(S->getValue());
- 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");
}
@@ -625,7 +623,7 @@
OS << "\n\n";
}
- OS << R.getValueAsCode("AdditionalMembers");
+ OS << R.getValueAsString("AdditionalMembers");
OS << "\n\n";
OS << " static bool classof(const Attr *A) { return A->getKind() == "
More information about the cfe-commits
mailing list