[PATCH] D66324: clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM
Chandler Carruth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 02:14:16 PDT 2019
chandlerc added inline comments.
================
Comment at: compiler-rt/trunk/lib/profile/xxhash.h:41-42
+
+#include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/StringRef.h"
+
----------------
Sorry folks, but you can't do this.
You can't depend on ADT from compiler-rt currently.
There are at least two problems here:
First problem is that this pollutes the profile library with symbols from ADT. That really doesn't seem reasonable without *significant* and invasive changes to ADT. Otherwise building LLVM and linking it with the profile library will create an ODR violation (imagine different assert levels or different versions of LLVM buing built and the host toolchain).
Second, and much more critically, we haven't gotten to 100% relicensed on ADT, so it is critical that we not depend on it from runtime libraries.
Third, a lot of this code seems to use old license headers. Please do not add any code like this to LLVM, and instead use the new LLVM license for all new code.
For now, this patch (and any related patches) need to be reverted until these are addressed. Especially the license issues.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66324/new/
https://reviews.llvm.org/D66324
More information about the cfe-commits
mailing list