aboutsummaryrefslogtreecommitdiff
path: root/lib/RSCompilerDriver.cpp
diff options
context:
space:
mode:
authorJean-Luc Brouillet <jeanluc@google.com>2017-02-23 02:01:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-23 02:01:05 +0000
commitcfb3604f234ce55c4bc2575cfdcf3f8c041fb869 (patch)
tree595bf2ea442c34dbc58bf385ec3b71458e64b8f0 /lib/RSCompilerDriver.cpp
parenta2b2545e07cc5ef1baf5d866af726dcf3c175184 (diff)
parentfc9c55b0c248a04a325c3540b75ecd3ae64fd91f (diff)
downloadlibbcc-cfb3604f234ce55c4bc2575cfdcf3f8c041fb869.tar.gz
Merge "Add back version info to Script in libbcc"
Diffstat (limited to 'lib/RSCompilerDriver.cpp')
-rw-r--r--lib/RSCompilerDriver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/RSCompilerDriver.cpp b/lib/RSCompilerDriver.cpp
index 09c4227..9f04a7f 100644
--- a/lib/RSCompilerDriver.cpp
+++ b/lib/RSCompilerDriver.cpp
@@ -276,6 +276,7 @@ bool RSCompilerDriver::build(BCCContext &pContext,
// Read information from bitcode wrapper.
bcinfo::BitcodeWrapper wrapper(pBitcode, pBitcodeSize);
+ script.setCompilerVersion(wrapper.getCompilerVersion());
script.setOptimizationLevel(static_cast<llvm::CodeGenOpt::Level>(
wrapper.getOptimizationLevel()));