mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 19:20:50 +00:00
Remove now unused Context variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
baf3c40440
commit
6c1e983a17
@ -337,7 +337,6 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP,
|
|||||||
SelectionDAG &DAG, const TargetLowering &TLI) {
|
SelectionDAG &DAG, const TargetLowering &TLI) {
|
||||||
bool Extend = false;
|
bool Extend = false;
|
||||||
DebugLoc dl = CFP->getDebugLoc();
|
DebugLoc dl = CFP->getDebugLoc();
|
||||||
LLVMContext *Context = DAG.getContext();
|
|
||||||
|
|
||||||
// If a FP immediate is precise when represented as a float and if the
|
// If a FP immediate is precise when represented as a float and if the
|
||||||
// target can do an extending load from float to double, we put it into
|
// target can do an extending load from float to double, we put it into
|
||||||
|
@ -537,7 +537,6 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
|||||||
std::multimap<std::string, GlobalVariable *> &AppendingVars,
|
std::multimap<std::string, GlobalVariable *> &AppendingVars,
|
||||||
std::string *Err) {
|
std::string *Err) {
|
||||||
ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable();
|
ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable();
|
||||||
LLVMContext &Context = Dest->getContext();
|
|
||||||
|
|
||||||
// Loop over all of the globals in the src module, mapping them over as we go
|
// Loop over all of the globals in the src module, mapping them over as we go
|
||||||
for (Module::const_global_iterator I = Src->global_begin(),
|
for (Module::const_global_iterator I = Src->global_begin(),
|
||||||
@ -724,8 +723,6 @@ CalculateAliasLinkage(const GlobalValue *SGV, const GlobalValue *DGV) {
|
|||||||
static bool LinkAlias(Module *Dest, const Module *Src,
|
static bool LinkAlias(Module *Dest, const Module *Src,
|
||||||
std::map<const Value*, Value*> &ValueMap,
|
std::map<const Value*, Value*> &ValueMap,
|
||||||
std::string *Err) {
|
std::string *Err) {
|
||||||
LLVMContext &Context = Dest->getContext();
|
|
||||||
|
|
||||||
// Loop over all alias in the src module
|
// Loop over all alias in the src module
|
||||||
for (Module::const_alias_iterator I = Src->alias_begin(),
|
for (Module::const_alias_iterator I = Src->alias_begin(),
|
||||||
E = Src->alias_end(); I != E; ++I) {
|
E = Src->alias_end(); I != E; ++I) {
|
||||||
@ -931,7 +928,6 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
std::map<const Value*, Value*> &ValueMap,
|
std::map<const Value*, Value*> &ValueMap,
|
||||||
std::string *Err) {
|
std::string *Err) {
|
||||||
ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable();
|
ValueSymbolTable &DestSymTab = Dest->getValueSymbolTable();
|
||||||
LLVMContext &Context = Dest->getContext();
|
|
||||||
|
|
||||||
// Loop over all of the functions in the src module, mapping them over
|
// Loop over all of the functions in the src module, mapping them over
|
||||||
for (Module::const_iterator I = Src->begin(), E = Src->end(); I != E; ++I) {
|
for (Module::const_iterator I = Src->begin(), E = Src->end(); I != E; ++I) {
|
||||||
|
@ -177,7 +177,6 @@ BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val,
|
|||||||
BasicBlock* Default)
|
BasicBlock* Default)
|
||||||
{
|
{
|
||||||
Function* F = OrigBlock->getParent();
|
Function* F = OrigBlock->getParent();
|
||||||
LLVMContext &Context = F->getContext();
|
|
||||||
BasicBlock* NewLeaf = BasicBlock::Create("LeafBlock");
|
BasicBlock* NewLeaf = BasicBlock::Create("LeafBlock");
|
||||||
Function::iterator FI = OrigBlock;
|
Function::iterator FI = OrigBlock;
|
||||||
F->getBasicBlockList().insert(++FI, NewLeaf);
|
F->getBasicBlockList().insert(++FI, NewLeaf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user