1
0
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:
Rafael Espindola 2018-02-14 19:23:27 +00:00
parent 7713c013a2
commit 1202040fcc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;