Support llvm metadata version 2
This is needed for llvm 8.0 support.
@@ -82,9 +82,12 @@ pub enum Symbol {
fn read_linking_section<R: std::io::Read>(input: &mut R) -> Result<Vec<Symbol>, elements::Error> {
let meta_data_version = u32::from(VarUint32::deserialize(input)?);
- if meta_data_version != 1 {
+ match meta_data_version {
+ 1 | 2 => (),
+ _ => {
return Err(elements::Error::Other("unsupported meta data version"));
}
+ }
let mut symbol_table = Vec::new();
