summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 23:09:36 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 23:09:36 +0000
commit57625a49666614860430a2b3d81600ead4df0fd5 (patch)
treecb7f9e295bdd30d4910a3ea03871b06eb6e197a4 /llvm/lib/Target/CppBackend/CPPBackend.cpp
parent66024d02448d4ce05f1ad71a92b610f2285882f8 (diff)
downloadbcm5719-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.cpp2
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";
OpenPOWER on IntegriCloud