[cfe-commits] r88723 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Mike Stump
mrs at apple.com
Fri Nov 13 15:45:54 PST 2009
Author: mrs
Date: Fri Nov 13 17:45:53 2009
New Revision: 88723
URL: http://llvm.org/viewvc/llvm-project?rev=88723&view=rev
Log:
Handle descructor printing better.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=88723&r1=88722&r2=88723&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Fri Nov 13 17:45:53 2009
@@ -268,15 +268,15 @@
idx = VCalls.size()+1;
VCalls.push_back(0);
D1(printf(" vcall for %s at %d with delta %d most derived %s\n",
- MD->getNameAsCString(), (int)-idx-3, (int)VCalls[idx-1],
- Class->getNameAsCString()));
+ MD->getNameAsString().c_str(), (int)-idx-3,
+ (int)VCalls[idx-1], Class->getNameAsCString()));
} else {
NonVirtualOffset[GD] = NonVirtualOffset[OGD];
VCallOffset[GD] = VCallOffset[OGD];
VCalls[idx-1] = -VCallOffset[OGD] + OverrideOffset/8;
D1(printf(" vcall patch for %s at %d with delta %d most derived %s\n",
- MD->getNameAsCString(), (int)-idx-3, (int)VCalls[idx-1],
- Class->getNameAsCString()));
+ MD->getNameAsString().c_str(), (int)-idx-3,
+ (int)VCalls[idx-1], Class->getNameAsCString()));
}
VCall[GD] = idx;
int64_t O = NonVirtualOffset[GD];
@@ -411,7 +411,8 @@
// else allocate a new slot.
Index[GD] = submethods.size();
submethods.push_back(m);
- D1(printf(" vfn for %s at %d\n", MD->getNameAsCString(), (int)Index[MD]));
+ D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(),
+ (int)Index[GD]));
if (MD->isPure())
Pures[GD] = 1;
if (MorallyVirtual) {
@@ -423,7 +424,7 @@
idx = VCalls.size()+1;
VCalls.push_back(0);
D1(printf(" vcall for %s at %d with delta %d\n",
- MD->getNameAsCString(), (int)-VCalls.size()-3, 0));
+ MD->getNameAsString().c_str(), (int)-VCalls.size()-3, 0));
}
}
}
More information about the cfe-commits
mailing list