[PATCH] D49416: [LLVM-C] Fix name mangling on AggressiveInstCombine
Markus Lindström via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 17 00:16:44 PDT 2018
mhlindstr created this revision.
mhlindstr added a reviewer: whitequark.
Herald added a subscriber: llvm-commits.
Similarly to https://reviews.llvm.org/rL336736, at least one more C API function does not properly get declared as extern "C" due to a missing header, causing name mangling and linking errors. This patch fixes calls to LLVMAddAggressiveInstCombinerPass().
Repository:
rL LLVM
https://reviews.llvm.org/D49416
Files:
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
Index: lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
===================================================================
--- lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
+++ lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
@@ -16,6 +16,7 @@
#include "llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h"
#include "AggressiveInstCombineInternal.h"
#include "llvm-c/Initialization.h"
+#include "llvm-c/Transforms/Scalar.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/BasicAliasAnalysis.h"
#include "llvm/Analysis/GlobalsModRef.h"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49416.155819.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180717/71f7a917/attachment.bin>
More information about the llvm-commits
mailing list