search for: apilist

Displaying 3 results from an estimated 3 matches for "apilist".

Did you mean: abilist
2014 Nov 10
2
[LLVMdev] External names for LTO in gold plugin
...ke: Index: Internalize.cpp =================================================================== --- Internalize.cpp (revision 221403) +++ Internalize.cpp (working copy) @@ -87,6 +87,7 @@ itr != ExportList.end(); itr++) { ExternalNames.insert(*itr); } + ExternalNames.insert(APIList.begin(), APIList.end()); } This adds the contents of the -internalize-public-api-list flag to the set of external names for the internalize pass, even when there are already some names being passed in the constructor. Then I would pass, e.g., "-Wl,-internalize-public-api-list=__xstat64&quo...
2017 Oct 26
2
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
...PO/Internalize.cpp =================================================================== --- lib/Transforms/IPO/Internalize.cpp  (revision 316540) +++ lib/Transforms/IPO/Internalize.cpp  (working copy) @@ -61,6 +61,7 @@      if (!APIFile.empty())        LoadFile(APIFile);      ExternalNames.insert(APIList.begin(), APIList.end()); +    ExternalNames.insert("main");    }    bool operator()(const GlobalValue &GV) { 在 2017年10月25日 21:20, Hal Finkel 写道: > Hi, Leslie, > > When you use internalize, you need to provide it with a list of > symbols to preserve as external (other...
2017 Oct 25
3
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi LLVM developers, $ cat hello.c #include <stdio.h> void foo() { } int main(int argc, char *argv[]) {   for (int i = 0; i < 10; i++) {     printf("%d\n", i);   }   return 0; } $ /opt/llvm-svn/bin/clang --version Fedora clang version 6.0.0 (trunk 316308) (based on LLVM 6.0.0svn) Target: x86_64-redhat-linux Thread model: posix InstalledDir: /opt/llvm-svn/bin $