Skip to content

Commit 66b9f46

Browse files
yichoibrson
authored andcommitted
---
yaml --- r: 71916 b: refs/heads/dist-snap c: 4b4f482 h: refs/heads/master v: v3
1 parent 7387c14 commit 66b9f46

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: a9741bd33d7e55401f506bb82b99411d03ce7e3f
10+
refs/heads/dist-snap: 4b4f48283bdd71fa106f1e2ce80c6d2a0d2aff36
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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)