mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Do not use DIFactory. Use DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0eea95d1cd
commit
afd0d0e8a7
@ -35,6 +35,7 @@
|
|||||||
#include "llvm/Metadata.h"
|
#include "llvm/Metadata.h"
|
||||||
#include "llvm/Analysis/AliasSetTracker.h"
|
#include "llvm/Analysis/AliasSetTracker.h"
|
||||||
#include "llvm/Analysis/DebugInfo.h"
|
#include "llvm/Analysis/DebugInfo.h"
|
||||||
|
#include "llvm/Analysis/DIBuilder.h"
|
||||||
#include "llvm/Analysis/Dominators.h"
|
#include "llvm/Analysis/Dominators.h"
|
||||||
#include "llvm/Analysis/InstructionSimplify.h"
|
#include "llvm/Analysis/InstructionSimplify.h"
|
||||||
#include "llvm/ADT/DenseMap.h"
|
#include "llvm/ADT/DenseMap.h"
|
||||||
@ -190,7 +191,7 @@ namespace {
|
|||||||
///
|
///
|
||||||
std::vector<AllocaInst*> Allocas;
|
std::vector<AllocaInst*> Allocas;
|
||||||
DominatorTree &DT;
|
DominatorTree &DT;
|
||||||
DIFactory *DIF;
|
DIBuilder *DIB;
|
||||||
|
|
||||||
/// AST - An AliasSetTracker object to update. If null, don't update it.
|
/// AST - An AliasSetTracker object to update. If null, don't update it.
|
||||||
///
|
///
|
||||||
@ -235,9 +236,9 @@ namespace {
|
|||||||
public:
|
public:
|
||||||
PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt,
|
PromoteMem2Reg(const std::vector<AllocaInst*> &A, DominatorTree &dt,
|
||||||
AliasSetTracker *ast)
|
AliasSetTracker *ast)
|
||||||
: Allocas(A), DT(dt), DIF(0), AST(ast) {}
|
: Allocas(A), DT(dt), DIB(0), AST(ast) {}
|
||||||
~PromoteMem2Reg() {
|
~PromoteMem2Reg() {
|
||||||
delete DIF;
|
delete DIB;
|
||||||
}
|
}
|
||||||
|
|
||||||
void run();
|
void run();
|
||||||
@ -951,9 +952,9 @@ void PromoteMem2Reg::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
|||||||
if (!DIVar.Verify())
|
if (!DIVar.Verify())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!DIF)
|
if (!DIB)
|
||||||
DIF = new DIFactory(*SI->getParent()->getParent()->getParent());
|
DIB = new DIBuilder(*SI->getParent()->getParent()->getParent());
|
||||||
Instruction *DbgVal = DIF->InsertDbgValueIntrinsic(SI->getOperand(0), 0,
|
Instruction *DbgVal = DIB->insertDbgValueIntrinsic(SI->getOperand(0), 0,
|
||||||
DIVar, SI);
|
DIVar, SI);
|
||||||
|
|
||||||
// Propagate any debug metadata from the store onto the dbg.value.
|
// Propagate any debug metadata from the store onto the dbg.value.
|
||||||
|
Loading…
Reference in New Issue
Block a user