summaryrefslogtreecommitdiff
path: root/image/creator.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-02 19:42:45 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-04-02 19:42:45 -0500
commit988817625a3acca49205c6f15fff743e2789c8ca (patch)
treebc283da3df36c8c0b76de5c023aeadac6c474ae3 /image/creator.cc
parentc6b0e5fc81d905f57688c696f80e480712f612ab (diff)
downloadhorizon-988817625a3acca49205c6f15fff743e2789c8ca.tar.gz
horizon-988817625a3acca49205c6f15fff743e2789c8ca.tar.bz2
horizon-988817625a3acca49205c6f15fff743e2789c8ca.tar.xz
horizon-988817625a3acca49205c6f15fff743e2789c8ca.zip
image: Actually make backends registerable
Diffstat (limited to 'image/creator.cc')
-rw-r--r--image/creator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/creator.cc b/image/creator.cc
index 70571fa..b16504a 100644
--- a/image/creator.cc
+++ b/image/creator.cc
@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
if(type_code == "list") {
std::cout << "Type codes known by this build of Image Creation:"
<< std::endl << std::endl;
- for(const auto &candidate : BasicBackend::available_backends()) {
+ for(const auto &candidate : BackendManager::available_backends()) {
std::cout << std::setw(10) << std::left << candidate.type_code
<< candidate.description << std::endl;
}
@@ -113,7 +113,7 @@ int main(int argc, char *argv[]) {
}
/* Load the proper backend. */
- for(const auto &candidate : BasicBackend::available_backends()) {
+ for(const auto &candidate : BackendManager::available_backends()) {
if(candidate.type_code == type_code) {
backend = candidate.creation_fn(ir_dir, output_path);
break;