mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Move TargetData to DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/system_error.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Transforms/Instrumentation.h"
|
||||
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
|
||||
@@ -207,7 +207,7 @@ struct AddressSanitizer : public ModulePass {
|
||||
bool HasDynamicInitializer(GlobalVariable *G);
|
||||
|
||||
LLVMContext *C;
|
||||
TargetData *TD;
|
||||
DataLayout *TD;
|
||||
uint64_t MappingOffset;
|
||||
int MappingScale;
|
||||
size_t RedzoneSize;
|
||||
@@ -736,7 +736,7 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) {
|
||||
// virtual
|
||||
bool AddressSanitizer::runOnModule(Module &M) {
|
||||
// Initialize the private fields. No one has accessed them before.
|
||||
TD = getAnalysisIfAvailable<TargetData>();
|
||||
TD = getAnalysisIfAvailable<DataLayout>();
|
||||
if (!TD)
|
||||
return false;
|
||||
BL.reset(new BlackList(ClBlackListFile));
|
||||
|
||||
Reference in New Issue
Block a user