[llvm-commits] [gcc-plugin] r76411 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Mon Jul 20 01:37:17 PDT 2009
Author: baldrick
Date: Mon Jul 20 03:37:16 2009
New Revision: 76411
URL: http://llvm.org/viewvc/llvm-project?rev=76411&view=rev
Log:
We definitely will need some functionality like
this for debugging, but it will have to wait till
later.
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=76411&r1=76410&r2=76411&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Mon Jul 20 03:37:16 2009
@@ -1764,29 +1764,28 @@
string);
}
-
-// print_llvm - Print the specified LLVM chunk like an operand, called by
-// print-tree.c for tree dumps.
-//
-void print_llvm(FILE *file, void *LLVM) {
- oFILEstream FS(file);
- FS << "LLVM: ";
- WriteAsOperand(FS, (Value*)LLVM, true, TheModule);
-}
-
-// print_llvm_type - Print the specified LLVM type symbolically, called by
-// print-tree.c for tree dumps.
-//
-void print_llvm_type(FILE *file, void *LLVM) {
- oFILEstream FS(file);
- FS << "LLVM: ";
-
- // FIXME: oFILEstream can probably be removed in favor of a new raw_ostream
- // 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);
-}
+//FIXME// print_llvm - Print the specified LLVM chunk like an operand, called by
+//FIXME// print-tree.c for tree dumps.
+//FIXME//
+//FIXMEvoid print_llvm(FILE *file, void *LLVM) {
+//FIXME oFILEstream FS(file);
+//FIXME FS << "LLVM: ";
+//FIXME WriteAsOperand(FS, (Value*)LLVM, true, TheModule);
+//FIXME}
+//FIXME
+//FIXME// print_llvm_type - Print the specified LLVM type symbolically, called by
+//FIXME// print-tree.c for tree dumps.
+//FIXME//
+//FIXMEvoid print_llvm_type(FILE *file, void *LLVM) {
+//FIXME oFILEstream FS(file);
+//FIXME FS << "LLVM: ";
+//FIXME
+//FIXME // FIXME: oFILEstream can probably be removed in favor of a new raw_ostream
+//FIXME // adaptor which would be simpler and more efficient. In the meantime, just
+//FIXME // adapt the adaptor.
+//FIXME raw_os_ostream RO(FS);
+//FIXME WriteTypeSymbolic(RO, (const Type*)LLVM, TheModule);
+//FIXME}
// Get a register name given its decl. In 4.2 unlike 4.0 these names
// have been run through set_user_assembler_name which means they may
More information about the llvm-commits
mailing list