Skip to content

Commit

Permalink
Remove unused code.[NFC]
Browse files Browse the repository at this point in the history
Differential Revision: D54888372
  • Loading branch information
Xin Tong authored and facebook-github-bot committed Mar 19, 2024
1 parent dab4b56 commit 09a6739
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/LLVMIRCodeGen/BundleSaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ BundleSaver::BundleSaver(const LLVMBackend &llvmBackend,
llvm::StringRef outputDir, llvm::StringRef bundleName)
: irgen_(llvmBackend.createIRGen(nullptr, allocationsInfo_)),
bundleAPI_(llvmBackend.getOptions().getBundleAPI()) {
llvm::SmallVector<std::string, 8> targetFeatures(llvmTargetFeatures.begin(),
llvmTargetFeatures.end());
irgen_->setBundleName(bundleName.str());
irgen_->setOutputDir(outputDir);
irgen_->setObjectRegistry(llvmBackend.getObjectRegistry());
Expand Down
4 changes: 0 additions & 4 deletions lib/LLVMIRCodeGen/LLVMBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,6 @@ std::unique_ptr<CompiledFunction>
LLVMBackend::compileIRWithoutConstants(IRFunction *IR) const {
AllocationsInfo allocationsInfo;
std::unique_ptr<LLVMIRGen> irgen = createIRGen(IR, allocationsInfo);
llvm::SmallVector<std::string, 8> targetFeatures(llvmTargetFeatures.begin(),
llvmTargetFeatures.end());
irgen->initTargetMachine(getOptions());
irgen->initCodeGen();
irgen->setIRFunction(IR);
Expand Down Expand Up @@ -736,8 +734,6 @@ LLVMBackend::compile(Function *F, const BackendOptions &opts) const {
void LLVMBackend::save(Function *F, llvm::StringRef outputDir,
llvm::StringRef bundleName,
llvm::StringRef mainEntryName) const {
llvm::SmallVector<std::string, 8> targetFeatures(llvmTargetFeatures.begin(),
llvmTargetFeatures.end());
auto IR = generateAndOptimizeIR(F, *this, shouldShareBuffers());
auto bundleSaver = createBundleSaver(*this, outputDir, bundleName);
bundleSaver->save(mainEntryName, IR.get());
Expand Down

0 comments on commit 09a6739

Please sign in to comment.