[llvm-commits] [llvm-gcc-4.2] r134834 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-types.cpp
Chris Lattner
sabre at nondot.org
Sat Jul 9 11:02:42 PDT 2011
Author: lattner
Date: Sat Jul 9 13:02:42 2011
New Revision: 134834
URL: http://llvm.org/viewvc/llvm-project?rev=134834&view=rev
Log:
stop using WriteTypeSymbolic.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=134834&r1=134833&r2=134834&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sat Jul 9 13:02:42 2011
@@ -1989,7 +1989,7 @@
// adaptor which would be simpler and more efficient. In the meantime, just
// adapt the adaptor.
raw_os_ostream RO(FS);
- WriteTypeSymbolic(RO, (const Type*)LLVM, TheModule);
+ RO << *(const Type*)LLVM;
}
/// extractRegisterName - Get a register name given its decl. In 4.2 unlike 4.0
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=134834&r1=134833&r2=134834&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Sat Jul 9 13:02:42 2011
@@ -1414,9 +1414,7 @@
for (unsigned i = 0, e = Elements.size(); i != e; ++i) {
OS << " Offset = " << ElementOffsetInBytes[i]
<< " Size = " << ElementSizeInBytes[i]
- << " Type = ";
- WriteTypeSymbolic(OS, Elements[i], TheModule);
- OS << "\n";
+ << " Type = " << *Elements[i] << "\n";
}
OS.flush();
}
More information about the llvm-commits
mailing list