mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "InstCombine.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/DataLayout.h"
|
||||
#include "llvm/Analysis/MemoryBuiltins.h"
|
||||
#include "llvm/Transforms/Utils/BuildLibCalls.h"
|
||||
#include "llvm/Transforms/Utils/Local.h"
|
||||
@@ -754,7 +754,7 @@ Instruction *InstCombiner::visitInvokeInst(InvokeInst &II) {
|
||||
/// passed through the varargs area, we can eliminate the use of the cast.
|
||||
static bool isSafeToEliminateVarargsCast(const CallSite CS,
|
||||
const CastInst * const CI,
|
||||
const TargetData * const TD,
|
||||
const DataLayout * const TD,
|
||||
const int ix) {
|
||||
if (!CI->isLosslessCast())
|
||||
return false;
|
||||
@@ -812,7 +812,7 @@ public:
|
||||
// Currently we're only working with the checking functions, memcpy_chk,
|
||||
// mempcpy_chk, memmove_chk, memset_chk, strcpy_chk, stpcpy_chk, strncpy_chk,
|
||||
// strcat_chk and strncat_chk.
|
||||
Instruction *InstCombiner::tryOptimizeCall(CallInst *CI, const TargetData *TD) {
|
||||
Instruction *InstCombiner::tryOptimizeCall(CallInst *CI, const DataLayout *TD) {
|
||||
if (CI->getCalledFunction() == 0) return 0;
|
||||
|
||||
InstCombineFortifiedLibCalls Simplifier(this);
|
||||
@@ -984,7 +984,7 @@ Instruction *InstCombiner::visitCallSite(CallSite CS) {
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
// Try to optimize the call if possible, we require TargetData for most of
|
||||
// Try to optimize the call if possible, we require DataLayout for most of
|
||||
// this. None of these calls are seen as possibly dead so go ahead and
|
||||
// delete the instruction now.
|
||||
if (CallInst *CI = dyn_cast<CallInst>(CS.getInstruction())) {
|
||||
|
Reference in New Issue
Block a user