mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Replace a few instances of NULL with nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3142798ac8
commit
3bd9ff3f1e
@ -195,9 +195,9 @@ static Constant *GetTorInit(std::vector<std::pair<Function*, int> > &TorList) {
|
||||
assert(!TorList.empty() && "Don't create empty tor list!");
|
||||
std::vector<Constant*> ArrayElts;
|
||||
Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
|
||||
|
||||
|
||||
StructType *STy =
|
||||
StructType::get(Int32Ty, TorList[0].first->getType(), NULL);
|
||||
StructType::get(Int32Ty, TorList[0].first->getType(), nullptr);
|
||||
for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
|
||||
Constant *Elts[] = {
|
||||
ConstantInt::get(Int32Ty, TorList[i].second),
|
||||
|
@ -597,7 +597,7 @@ int main(int argc, char **argv, char * const *envp) {
|
||||
// function later on to make an explicit call, so get the function now.
|
||||
Constant *Exit = Mod->getOrInsertFunction("exit", Type::getVoidTy(Context),
|
||||
Type::getInt32Ty(Context),
|
||||
NULL);
|
||||
nullptr);
|
||||
|
||||
// Run static constructors.
|
||||
if (!ForceInterpreter) {
|
||||
|
Loading…
Reference in New Issue
Block a user