summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSIL/MSILWriter.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-14 20:18:05 +0000
committerDavid Greene <greened@obbligato.org>2009-07-14 20:18:05 +0000
commita31f96cf2bb2d4868d629b17b4e8ec106a23e776 (patch)
tree90d314a81dfda17ca4c96c57774b0a789e25df90 /llvm/lib/Target/MSIL/MSILWriter.h
parentf6a5ab9abddb9c57c116449490114ec695f7e85f (diff)
downloadbcm5719-llvm-a31f96cf2bb2d4868d629b17b4e8ec106a23e776.tar.gz
bcm5719-llvm-a31f96cf2bb2d4868d629b17b4e8ec106a23e776.zip
Have asm printers use formatted_raw_ostream directly to avoid a
dynamic_cast<>. llvm-svn: 75670
Diffstat (limited to 'llvm/lib/Target/MSIL/MSILWriter.h')
-rw-r--r--llvm/lib/Target/MSIL/MSILWriter.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.h b/llvm/lib/Target/MSIL/MSILWriter.h
index ea0dfad0e46..cbb2d31e7db 100644
--- a/llvm/lib/Target/MSIL/MSILWriter.h
+++ b/llvm/lib/Target/MSIL/MSILWriter.h
@@ -21,8 +21,8 @@
#include "llvm/PassManager.h"
#include "llvm/Analysis/FindUsedTypes.h"
#include "llvm/Analysis/LoopInfo.h"
+#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
-#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachineRegistry.h"
@@ -75,7 +75,7 @@ namespace {
}
public:
- raw_ostream &Out;
+ formatted_raw_ostream &Out;
Module* ModulePtr;
const TargetData* TD;
Mangler* Mang;
@@ -85,11 +85,15 @@ namespace {
StaticInitList;
const std::set<const Type *>* UsedTypes;
static char ID;
+<<<<<<< .mine
+ MSILWriter(formatted_raw_ostream &o) : FunctionPass(&ID), Out(o) {
+=======
DenseMap<const Value*, unsigned> AnonValueNumbers;
unsigned NextAnonValueNumber;
MSILWriter(raw_ostream &o)
: FunctionPass(&ID), Out(o), NextAnonValueNumber(0) {
+>>>>>>> .r75668
UniqID = 0;
}
OpenPOWER on IntegriCloud