[PATCH] D30591: Introduce the feature "linux" for tests only for linux
Bob Haarman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 3 15:27:23 PST 2017
inglorion added a comment.
Checking for linux when really you want to check for ELF doesn't seem right. In this case, I think there is an better way to do it; instead of relying on llvm-objdump, could you emit an LLVM assembly file and check that for presence of the string you want? I think if you compile with clang -g -S -emit-llvm, it will give you LLVM assembly with metadata for the records you need and you won't need to generate an object file.
https://reviews.llvm.org/D30591
More information about the cfe-commits
mailing list