mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Don't pass target name into TargetData anymore, it is never used or needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -66,7 +66,7 @@ int main(int argc, char **argv) {
|
||||
// In addition to deleting all other functions, we also want to spiff it
|
||||
// up a little bit. Do this now.
|
||||
PassManager Passes;
|
||||
Passes.add(new TargetData("extract", M.get())); // Use correct TargetData
|
||||
Passes.add(new TargetData(M.get())); // Use correct TargetData
|
||||
// Either isolate the function or delete it from the Module
|
||||
Passes.add(createFunctionExtractionPass(F, DeleteFn));
|
||||
Passes.add(createGlobalDCEPass()); // Delete unreachable globals
|
||||
|
Reference in New Issue
Block a user