mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
rustc_llvm: remove stale references
...that were removed in 77c3bfa742
.
This commit is contained in:
parent
71340ca4e1
commit
658ea389fd
1
.gitignore
vendored
1
.gitignore
vendored
@ -95,7 +95,6 @@ config.stamp
|
||||
keywords.md
|
||||
lexer.ml
|
||||
src/etc/dl
|
||||
src/librustc_llvm/llvmdeps.rs
|
||||
tmp.*.rs
|
||||
version.md
|
||||
version.ml
|
||||
|
@ -505,17 +505,13 @@ pub mod debuginfo {
|
||||
|
||||
pub enum ModuleBuffer {}
|
||||
|
||||
// Link to our native llvm bindings (things that we need to use the C++ api
|
||||
// for) and because llvm is written in C++ we need to link against libstdc++
|
||||
//
|
||||
// You'll probably notice that there is an omission of all LLVM libraries
|
||||
// from this location. This is because the set of LLVM libraries that we
|
||||
// link to is mostly defined by LLVM, and the `llvm-config` tool is used to
|
||||
// figure out the exact set of libraries. To do this, the build system
|
||||
// generates an llvmdeps.rs file next to this one which will be
|
||||
// automatically updated whenever LLVM is updated to include an up-to-date
|
||||
// set of the libraries we need to link to LLVM for.
|
||||
#[link(name = "rustllvm", kind = "static")] // not quite true but good enough
|
||||
// This annotation is primarily needed for MSVC where attributes like
|
||||
// dllimport/dllexport are applied and need to be correct for everything to
|
||||
// link successfully. The #[link] annotation here says "these symbols are
|
||||
// included statically" which means that they're all exported with dllexport
|
||||
// and from the rustc_llvm dynamic library. Otherwise the rustc_trans dynamic
|
||||
// library would not be able to access these symbols.
|
||||
#[link(name = "rustllvm", kind = "static")]
|
||||
extern "C" {
|
||||
// Create and destroy contexts.
|
||||
pub fn LLVMContextCreate() -> ContextRef;
|
||||
|
Loading…
Reference in New Issue
Block a user