search for: linked_main

Displaying 1 result from an estimated 1 matches for "linked_main".

2017 Aug 29
5
Is the flow "llvm-extract -> llvm-link -> clang++ " supposed to be used in this way? To Extract and Re-insert functions?
...that requires to re-link extracted and edited IR code Thus I want to know if these tools can be used in this way? clang++-4.0 code03.cpp -emit-llvm -S -o code03.ll llvm-extract-4.0 code03.ll -func main -S -o extracted_main.ll llvm-link-4.0 code03.ll -only-needed -override extracted_main.ll -S -o linked_main.ll clang++-4.0 linked_main.ll -o main.out where code03.cpp is: #include <iostream> > using namespace std; > int main() > { > cout << "First Message\n "; > cout << "Second Message\n "; > cout << "Third Message\n "; >...