Skip to content

getFeatureTable() doesn't exist in LLVM 4.x #43555

Closed
@ishitatsuyuki

Description

@ishitatsuyuki

Blame: c471020
Arch Linux, LLVM 4.0.1-5 (using system llvm shared)

cargo:warning=../rustllvm/PassWrapper.cpp: In function ‘bool LLVMRustHasFeature(LLVMTargetMachineRef, const char*)’:
cargo:warning=../rustllvm/PassWrapper.cpp:185:58: error: ‘const class llvm::MCSubtargetInfo’ has no member named ‘getFeatureTable’; did you mean ‘getFeatureBits’?
cargo:warning=   const ArrayRef<SubtargetFeatureKV> FeatTable = MCInfo->getFeatureTable();
cargo:warning=                                                          ^~~~~~~~~~~~~~~
cargo:warning=                                                          getFeatureBits

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions