mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -121,12 +121,12 @@ public:
|
||||
void release() {
|
||||
assert(Func &&
|
||||
"Attempted to release function twice, or release empty/tombstone!");
|
||||
Func = NULL;
|
||||
Func = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
explicit ComparableFunction(unsigned Hash)
|
||||
: Func(NULL), Hash(Hash), DL(NULL) {}
|
||||
: Func(nullptr), Hash(Hash), DL(nullptr) {}
|
||||
|
||||
AssertingVH<Function> Func;
|
||||
unsigned Hash;
|
||||
@@ -684,7 +684,7 @@ ModulePass *llvm::createMergeFunctionsPass() {
|
||||
bool MergeFunctions::runOnModule(Module &M) {
|
||||
bool Changed = false;
|
||||
DataLayoutPass *DLP = getAnalysisIfAvailable<DataLayoutPass>();
|
||||
DL = DLP ? &DLP->getDataLayout() : 0;
|
||||
DL = DLP ? &DLP->getDataLayout() : nullptr;
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||
if (!I->isDeclaration() && !I->hasAvailableExternallyLinkage())
|
||||
|
||||
Reference in New Issue
Block a user