Convert typerec to be a structure instead of a pair

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-10-18 18:22:46 +00:00
parent 137d399fae
commit a3f8586d9d
5 changed files with 41 additions and 10 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ static string getCaption(const DSNode *N, const DSGraph *G) {
Module *M = G && &G->getFunction() ? G->getFunction().getParent() : 0;
for (unsigned i = 0, e = N->getTypeEntries().size(); i != e; ++i) {
WriteTypeSymbolic(OS, N->getTypeEntries()[i].first, M);
if (N->getTypeEntries()[i].second)
OS << "@" << N->getTypeEntries()[i].second;
WriteTypeSymbolic(OS, N->getTypeEntries()[i].Ty, M);
if (N->getTypeEntries()[i].Offset)
OS << "@" << N->getTypeEntries()[i].Offset;
OS << "\n";
}