[LLVM] Introduce a stable representation of DIFlags
In LLVM 4.0, this enum becomes an actual type-safe enum, which breaks all of the interfaces. Introduce our own copy of the bitflags that we can then safely convert to the LLVM one.
This commit is contained in:
parent
c80c31a502
commit
dbdd60e6d7
8 changed files with 172 additions and 60 deletions
|
@ -29,8 +29,12 @@
|
|||
#![feature(link_args)]
|
||||
#![feature(linked_from)]
|
||||
#![feature(staged_api)]
|
||||
#![cfg_attr(not(stage0), feature(rustc_private))]
|
||||
|
||||
extern crate libc;
|
||||
#[macro_use]
|
||||
#[no_link]
|
||||
extern crate rustc_bitflags;
|
||||
|
||||
pub use self::IntPredicate::*;
|
||||
pub use self::RealPredicate::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue