Fix spacing, forward declare order.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Nov 2013 02:51:33 +0000 (02:51 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Nov 2013 02:51:33 +0000 (02:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194985 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/AutoUpgrade.h
include/llvm/IR/Constants.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp

index 22d0c43fd168e99a502dc55822716b04587f5498..b638d4f59048a1108336966338f3633bd780d848 100644 (file)
 #define LLVM_AUTOUPGRADE_H
 
 namespace llvm {
+  class CallInst;
   class Constant;
-  class Module;
-  class GlobalVariable;
   class Function;
-  class CallInst;
   class Instruction;
-  class Value;
+  class Module;
+  class GlobalVariable;
   class Type;
+  class Value;
 
   /// This is a more granular function that simply checks an intrinsic function
   /// for upgrading, and returns true if it requires upgrading. It may return
index b6e208285ae359ad374c57bcee03eff78606c339..f1cee5a8f7f8759c700a9c6673ce463f808801ee 100644 (file)
@@ -862,7 +862,7 @@ public:
   static Constant *getPtrToInt(Constant *C, Type *Ty);
   static Constant *getIntToPtr(Constant *C, Type *Ty);
   static Constant *getBitCast (Constant *C, Type *Ty);
-  static Constant *getAddrSpaceCast (Constant *C, Type *Ty);
+  static Constant *getAddrSpaceCast(Constant *C, Type *Ty);
 
   static Constant *getNSWNeg(Constant *C) { return getNeg(C, false, true); }
   static Constant *getNUWNeg(Constant *C) { return getNeg(C, true, false); }
@@ -1080,8 +1080,8 @@ public:
   /// as this ConstantExpr. The instruction is not linked to any basic block.
   ///
   /// A better approach to this could be to have a constructor for Instruction
-  /// which would take a ConstantExpr parameter, but that would have spread 
-  /// implementation details of ConstantExpr outside of Constants.cpp, which 
+  /// which would take a ConstantExpr parameter, but that would have spread
+  /// implementation details of ConstantExpr outside of Constants.cpp, which
   /// would make it harder to remove ConstantExprs altogether.
   Instruction *getAsInstruction();
 
index e052e6e5bae0e85c6faa2f7a56fe4b0f02b6ca1f..2c95c920f8406787197653a103fc00c588b06a10 100644 (file)
@@ -128,7 +128,7 @@ static int GetDecodedCastOpcode(unsigned Val) {
   case bitc::CAST_PTRTOINT: return Instruction::PtrToInt;
   case bitc::CAST_INTTOPTR: return Instruction::IntToPtr;
   case bitc::CAST_BITCAST : return Instruction::BitCast;
-  case bitc::CAST_ADDRSPACECAST : return Instruction::AddrSpaceCast;
+  case bitc::CAST_ADDRSPACECAST: return Instruction::AddrSpaceCast;
   }
 }
 static int GetDecodedBinaryOpcode(unsigned Val, Type *Ty) {
index 02ee917dd51c673669c23fff29f0537d49546926..4cfc6bde76edab94d4adabaf7737ee9a72d40d9a 100644 (file)
@@ -78,7 +78,7 @@ static unsigned GetEncodedCastOpcode(unsigned Opcode) {
   case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
   case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
   case Instruction::BitCast : return bitc::CAST_BITCAST;
-  case Instruction::AddrSpaceCast : return bitc::CAST_ADDRSPACECAST;
+  case Instruction::AddrSpaceCast: return bitc::CAST_ADDRSPACECAST;
   }
 }