clover: Change program::build opts argument to std::string.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Tested-by: Jan Vesely <jan.vesely@rutgers.edu>
This commit is contained in:
Serge Martin 2016-05-17 16:03:12 +02:00 committed by Francisco Jerez
parent 2a73ae662c
commit 7f6a4a4342
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ program::program(clover::context &ctx,
}
void
program::build(const ref_vector<device> &devs, const char *opts,
program::build(const ref_vector<device> &devs, const std::string &opts,
const header_map &headers) {
if (has_source) {
_devices = devs;
@ -60,7 +60,7 @@ program::build(const ref_vector<device> &devs, const char *opts,
tgsi::compile_program(_source, log) :
compile_program_llvm(_source, headers,
dev.ir_format(),
dev.ir_target(), build_opts(dev),
dev.ir_target(), opts,
log));
_binaries.insert({ &dev, module });
_logs.insert({ &dev, log });

View File

@ -47,7 +47,7 @@ namespace clover {
program &
operator=(const program &prog) = delete;
void build(const ref_vector<device> &devs, const char *opts,
void build(const ref_vector<device> &devs, const std::string &opts,
const header_map &headers = {});
const bool has_source;