mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Move TargetData to DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1253,7 +1253,7 @@ methods. Here's a realistic example:</p>
|
||||
>#include "llvm/CodeGen/AsmPrinter.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
#include "llvm/Target/TargetAsmInfo.h"
|
||||
|
||||
void MyGCPrinter::beginAssembly(std::ostream &OS, AsmPrinter &AP,
|
||||
@@ -1266,7 +1266,7 @@ void MyGCPrinter::finishAssembly(std::ostream &OS, AsmPrinter &AP,
|
||||
// Set up for emitting addresses.
|
||||
const char *AddressDirective;
|
||||
int AddressAlignLog;
|
||||
if (AP.TM.getTargetData()->getPointerSize() == sizeof(int32_t)) {
|
||||
if (AP.TM.getDataLayout()->getPointerSize() == sizeof(int32_t)) {
|
||||
AddressDirective = TAI.getData32bitsDirective();
|
||||
AddressAlignLog = 2;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user