diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 | 
| commit | ca14237696a1b7453bbf90f511bd9f2b03254ae9 (patch) | |
| tree | d176761686c4436643314719e1adb1406689a6a7 /llvm/lib/Transforms/Utils | |
| parent | aa77eab129a804b39b876fc42cb8477c53315bcc (diff) | |
| download | bcm5719-llvm-ca14237696a1b7453bbf90f511bd9f2b03254ae9.tar.gz bcm5719-llvm-ca14237696a1b7453bbf90f511bd9f2b03254ae9.zip  | |
Split ConstantVals.h into Constant.h and Constants.h
llvm-svn: 2378
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Linker.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 4 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp index 086c6c6b28f..2de6f81fdf9 100644 --- a/llvm/lib/Transforms/Utils/Linker.cpp +++ b/llvm/lib/Transforms/Utils/Linker.cpp @@ -17,7 +17,7 @@  #include "llvm/SymbolTable.h"  #include "llvm/DerivedTypes.h"  #include "llvm/iOther.h" -#include "llvm/ConstantVals.h" +#include "llvm/Constants.h"  #include "llvm/Argument.h"  #include <iostream>  using std::cerr; diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 8679701e6a7..ab945500777 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -25,7 +25,7 @@  #include "llvm/Pass.h"  #include "llvm/Function.h"  #include "llvm/BasicBlock.h" -#include "llvm/ConstantVals.h" +#include "llvm/Constant.h"  using std::vector;  using std::map; @@ -79,7 +79,7 @@ static inline bool isSafeAlloca(const AllocaInst *AI) {        if (MAI->hasIndices()) {  // indexed?          // Allow the access if there is only one index and the index is          // zero. -        if (*MAI->idx_begin() != ConstantUInt::get(Type::UIntTy, 0) || +        if (*MAI->idx_begin() != Constant::getNullValue(Type::UIntTy) ||              MAI->idx_begin()+1 != MAI->idx_end())            return false;        }  | 

