mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 12:11:58 +00:00
Update examples for API change. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06d6207c1c
commit
4fe1287be8
@ -171,7 +171,7 @@ int main(int argc, char **argv) {
|
||||
// is unmanageable because stdout linkage name depends on stdlib implementation.
|
||||
fflush(stdout);
|
||||
} else {
|
||||
WriteBitcodeToFile(Mod.get(), *out);
|
||||
WriteBitcodeToFile(*Mod, *out);
|
||||
}
|
||||
|
||||
//Clean up
|
||||
|
@ -62,7 +62,7 @@ int main() {
|
||||
BB->getInstList().push_back(ReturnInst::Create(Context, Add));
|
||||
|
||||
// Output the bitcode file to stdout
|
||||
WriteBitcodeToFile(M, outs());
|
||||
WriteBitcodeToFile(*M, outs());
|
||||
|
||||
// Delete the module and all of its contents.
|
||||
delete M;
|
||||
|
Loading…
x
Reference in New Issue
Block a user