Skip to content

Upgrade LLVM again #12574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated 154 files
16 changes: 10 additions & 6 deletions src/rustllvm/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,16 @@ LLVMRustDisposeTargetMachine(LLVMTargetMachineRef TM) {
// passes for a target to a pass manager. We export that functionality through
// this function.
extern "C" void
LLVMRustAddAnalysisPasses(LLVMTargetMachineRef TM,
LLVMPassManagerRef PMR,
LLVMModuleRef M) {
PassManagerBase *PM = unwrap(PMR);
PM->add(new DataLayout(unwrap(M)));
unwrap(TM)->addAnalysisPasses(*PM);
LLVMRustAddAnalysisPasses(LLVMTargetMachineRef LTM,
LLVMPassManagerRef LPM,
LLVMModuleRef LM) {
PassManagerBase *PM = unwrap(LPM);
Module *M = unwrap(LM);
TargetMachine *TM = unwrap(LTM);

M->setDataLayout(TM->getDataLayout());
PM->add(new DataLayoutPass(M));
TM->addAnalysisPasses(*PM);
}

// Unfortunately, the LLVM C API doesn't provide a way to set the `LibraryInfo`
Expand Down
2 changes: 1 addition & 1 deletion src/rustllvm/llvm-auto-clean-trigger
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# If this file is modified, then llvm will be forcibly cleaned and then rebuilt.
# The actual contents of this file do not matter, but to trigger a change on the
# build bots then the contents should be changed so git updates the mtime.
2014-02-25
2014-02-26