mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Update examples for API change. NFC.
llvm-svn: 325157
This commit is contained in:
parent
7713c013a2
commit
1202040fcc
@ -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…
Reference in New Issue
Block a user