Convert test to FileCheck.
[oota-llvm.git] / lib / Target / MSIL / MSILWriter.h
index 09cfb219bfef393b1c4c512548a62d6c805f5436..2280a3bed91511adb7deb2bc635f798c44b7acd0 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef MSILWRITER_H
 #define MSILWRITER_H
 
+#include "llvm/CallingConv.h"
 #include "llvm/Constants.h"
 #include "llvm/Module.h"
 #include "llvm/Instructions.h"
 #include "llvm/Support/GetElementPtrTypeIterator.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/TargetMachineRegistry.h"
 #include "llvm/Support/Mangler.h"
-#include <ios>
-using namespace llvm;
 
 namespace llvm {
   extern Target TheMSILTarget;
-}
-
-namespace MSIL {
 
   class MSILModule : public ModulePass {
     Module *ModulePtr;
@@ -61,7 +56,7 @@ namespace MSIL {
 
   };
 
-  class MSILWriter  : public FunctionPass {
+  class MSILWriter : public FunctionPass {
     struct StaticInitializer {
       const Constant* constant;
       uint64_t offset;
@@ -139,7 +134,7 @@ namespace MSIL {
 
     std::string getLabelName(const std::string& Name);
 
-    std::string getConvModopt(unsigned CallingConvID);
+    std::string getConvModopt(CallingConv::ID CallingConvID);
 
     std::string getArrayTypeName(Type::TypeID TyID, const Type* Ty);
 
@@ -254,7 +249,7 @@ namespace MSIL {
     const char* getLibraryName(const GlobalVariable* GV); 
     
     const char* getLibraryForSymbol(const StringRef &Name, bool isFunction,
-                                    unsigned CallingConv);
+                                    CallingConv::ID CallingConv);
 
     void printExternals();
   };