Skip to content

Commit 2d53287

Browse files
committed
up
1 parent 9935976 commit 2d53287

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.sublime-project.sublime-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"project": ".sublime-project"
2+
"project": ".sublime-project"
33
}

mkn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ src: mod.cpp
99
mode: shared
1010
if_arg:
1111
win_shared: -DYAML_CPP_DLL
12-
shared: -DKUL_SHARED
12+
shared: -DMKN_KUL_SHARED
1313

1414
profile:
1515
- name: base

mod.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2929
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030
*/
3131
#include <string_view>
32-
#include <unordered_set>
3332

3433
#include "maiken/module/init.hpp"
3534

@@ -73,8 +72,7 @@ class LLVM_OptRec_Module : public maiken::Module {
7372

7473
public:
7574
void init(maiken::Application &a, YAML::Node const &node)
76-
KTHROW(std::exception) override {
77-
}
75+
KTHROW(std::exception) override {}
7876

7977
void compile(maiken::Application &a, YAML::Node const &node)
8078
KTHROW(std::exception) override {
@@ -89,7 +87,7 @@ class LLVM_OptRec_Module : public maiken::Module {
8987
mkn::kul::Dir hmtl{"res_html", a.buildDir()};
9088
hmtl.mk();
9189

92-
mkn::kul::Process p{"/usr/lib/llvm-14/share/opt-viewer/opt-viewer.py"};
90+
mkn::kul::Process p{"/usr/share/opt-viewer/opt-viewer.py"};
9391
p << res.mini() << "--output-dir" << hmtl.mini();
9492
KLOG(DBG) << p;
9593
p.start();
@@ -98,10 +96,10 @@ class LLVM_OptRec_Module : public maiken::Module {
9896

9997
} // namespace mkn::clang
10098

101-
extern "C" KUL_PUBLISH maiken::Module *maiken_module_construct() {
99+
extern "C" MKN_KUL_PUBLISH maiken::Module *maiken_module_construct() {
102100
return new mkn ::clang ::LLVM_OptRec_Module;
103101
}
104102

105-
extern "C" KUL_PUBLISH void maiken_module_destruct(maiken::Module *p) {
103+
extern "C" MKN_KUL_PUBLISH void maiken_module_destruct(maiken::Module *p) {
106104
delete p;
107105
}

0 commit comments

Comments
 (0)