mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
remove commented code
This commit is contained in:
parent
adca0a4ca8
commit
347c30d958
1 changed files with 0 additions and 22 deletions
|
@ -150,27 +150,5 @@ void setRtCompileVar(const Context &context, llvm::Module &module,
|
|||
var->setConstant(true);
|
||||
var->setInitializer(initializer);
|
||||
var->setLinkage(llvm::GlobalValue::PrivateLinkage);
|
||||
// auto tempVar = new llvm::GlobalVariable(
|
||||
// module,
|
||||
// type,
|
||||
// true,
|
||||
// llvm::GlobalValue::PrivateLinkage,
|
||||
// initializer,
|
||||
// ".str");
|
||||
// llvm::Constant *idxs[] = {zero};
|
||||
// auto constPtr = llvm::ConstantExpr::getGetElementPtr(nullptr,
|
||||
// tempVar,
|
||||
// idxs,
|
||||
// true);
|
||||
// for (auto&& use: var->uses()) {
|
||||
// use->dump();
|
||||
// use->getType()->dump();
|
||||
// auto i = llvm::cast<llvm::GlobalVariable>(use);
|
||||
// i->replaceAllUsesWith(constPtr);
|
||||
// i->eraseFromParent();
|
||||
// }
|
||||
|
||||
// var->replaceAllUsesWith(initializer);
|
||||
// var->eraseFromParent();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue