Config is getting big, pass by reference rather than value
[benchmarks.git] / src / x86_64 / x86_64_benchmarks.cpp
index 9bc145fb3f16f0307dcc6c27b3f3300ad14d98cf..83a02ff50afd643381d80e66f667ec37164911b7 100644 (file)
@@ -2,7 +2,7 @@
 
 #ifdef __x86_64__
 
-std::vector<Benchmark> x86_64_benchmarks(Config config)
+std::vector<Benchmark> x86_64_benchmarks(const Config &config)
 {
     std::vector<Benchmark> retval;
     // TODO: add x86_64 benchmarks
@@ -12,9 +12,9 @@ std::vector<Benchmark> x86_64_benchmarks(Config config)
 
 #else
 
-std::vector<Benchmark> x86_64_benchmarks(Config)
+std::vector<Benchmark> x86_64_benchmarks(const Config &)
 {
     return {};
 }
 
-#endif
\ No newline at end of file
+#endif