diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-25 23:09:36 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-25 23:09:36 +0000 |
commit | 57625a49666614860430a2b3d81600ead4df0fd5 (patch) | |
tree | cb7f9e295bdd30d4910a3ea03871b06eb6e197a4 /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | 66024d02448d4ce05f1ad71a92b610f2285882f8 (diff) | |
download | bcm5719-llvm-57625a49666614860430a2b3d81600ead4df0fd5.tar.gz bcm5719-llvm-57625a49666614860430a2b3d81600ead4df0fd5.zip |
Remove some introspection functions.
The 'getSlot' function and its ilk allow introspection into the AttributeSet
class. However, that class should be opaque. Allow access through accessor
methods instead.
llvm-svn: 173522
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 2560c6e6c47..1f4bdf8d89b 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -474,7 +474,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL, Out << "AttributeWithIndex PAWI;"; nl(Out); for (unsigned i = 0; i < PAL.getNumSlots(); ++i) { unsigned index = PAL.getSlotIndex(i); - AttrBuilder attrs(PAL.getSlot(i).Attrs); + AttrBuilder attrs(PAL.getSlotAttributes(i), index); Out << "PAWI.Index = " << index << "U;\n"; Out << " {\n AttrBuilder B;\n"; |