Skip to content

Commit a29b954

Browse files
yichoibrson
authored andcommitted
---
yaml --- r: 56815 b: refs/heads/try c: 4b4f482 h: refs/heads/master i: 56813: 25f2b69 56811: b72f7d4 56807: a921593 56799: e684294 v: v3
1 parent 138b1bb commit a29b954

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5-
refs/heads/try: a9741bd33d7e55401f506bb82b99411d03ce7e3f
5+
refs/heads/try: 4b4f48283bdd71fa106f1e2ce80c6d2a0d2aff36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/rustllvm/RustWrapper.cpp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
//
1616
//===----------------------------------------------------------------------===
1717

18-
#include "llvm/InlineAsm.h"
19-
#include "llvm/LLVMContext.h"
2018
#include "llvm/Linker.h"
2119
#include "llvm/PassManager.h"
20+
#include "llvm/IR/InlineAsm.h"
21+
#include "llvm/IR/LLVMContext.h"
2222
#include "llvm/Analysis/Verifier.h"
2323
#include "llvm/Analysis/Passes.h"
24-
#include "llvm/Transforms/Scalar.h"
25-
#include "llvm/Transforms/IPO.h"
2624
#include "llvm/ADT/Triple.h"
2725
#include "llvm/ADT/DenseSet.h"
2826
#include "llvm/Assembly/Parser.h"
@@ -31,11 +29,9 @@
3129
#include "llvm/Support/FormattedStream.h"
3230
#include "llvm/Support/Timer.h"
3331
#include "llvm/Support/raw_ostream.h"
34-
#include "llvm/Target/TargetMachine.h"
3532
#include "llvm/Support/TargetSelect.h"
3633
#include "llvm/Support/TargetRegistry.h"
3734
#include "llvm/Support/SourceMgr.h"
38-
#include "llvm/Target/TargetOptions.h"
3935
#include "llvm/Support/Host.h"
4036
#include "llvm/Support/Debug.h"
4137
#include "llvm/Support/DynamicLibrary.h"
@@ -45,6 +41,10 @@
4541
#include "llvm/ExecutionEngine/JITMemoryManager.h"
4642
#include "llvm/ExecutionEngine/MCJIT.h"
4743
#include "llvm/ExecutionEngine/Interpreter.h"
44+
#include "llvm/Target/TargetMachine.h"
45+
#include "llvm/Target/TargetOptions.h"
46+
#include "llvm/Transforms/Scalar.h"
47+
#include "llvm/Transforms/IPO.h"
4848
#include "llvm-c/Core.h"
4949
#include "llvm-c/BitReader.h"
5050
#include "llvm-c/Object.h"
@@ -218,6 +218,12 @@ class RustMCJITMemoryManager : public JITMemoryManager {
218218
virtual void deallocateExceptionTable(void *ET) {
219219
llvm_unreachable("Unimplemented call");
220220
}
221+
virtual uint8_t* allocateDataSection(uintptr_t, unsigned int, unsigned int, bool) {
222+
llvm_unreachable("Unimplemented call");
223+
}
224+
virtual bool applyPermissions(std::string*) {
225+
llvm_unreachable("Unimplemented call");
226+
}
221227
};
222228

223229
bool RustMCJITMemoryManager::loadCrate(const char* file, std::string* err) {
@@ -481,7 +487,7 @@ extern "C" LLVMModuleRef LLVMRustParseAssemblyFile(const char *Filename) {
481487
if (m) {
482488
return wrap(m);
483489
} else {
484-
LLVMRustError = d.getMessage().c_str();
490+
LLVMRustError = d.getMessage().data();
485491
return NULL;
486492
}
487493
}

branches/try/src/rustllvm/rustllvm.def.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,6 @@ LLVMInitializeInstCombine
383383
LLVMInitializeScalarOpts
384384
LLVMInitializeTarget
385385
LLVMInitializeTransformUtils
386-
LLVMInitializeARMAsmLexer
387-
LLVMInitializeX86AsmLexer
388386
LLVMInitializeARMAsmParser
389387
LLVMInitializeMipsAsmParser
390388
LLVMInitializeX86AsmParser

0 commit comments

Comments
 (0)