about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2018-03-27 12:27:45 -0700
committerJosh Stone <jistone@redhat.com>2018-03-27 12:27:45 -0700
commita93a4d259ae3670d748859f430aba94f065ea6df (patch)
tree255366011c8f4b7d758b6adadb9724190926658d /src/rustllvm/RustWrapper.cpp
parent9c9424de51da41fd3d1077ac7810276f8dc746fa (diff)
downloadrust-a93a4d259ae3670d748859f430aba94f065ea6df.tar.gz
rust-a93a4d259ae3670d748859f430aba94f065ea6df.zip
Enable target_feature on any LLVM 6+
In `LLVMRustHasFeature()`, rather than using `MCInfo->getFeatureTable()`
that is specific to Rust's LLVM fork, we can use this in LLVM 6:

    /// Check whether the subtarget features are enabled/disabled as per
    /// the provided string, ignoring all other features.
    bool checkFeatures(StringRef FS) const;

Now rustc using external LLVM can also have `target_feature`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions