summarylogtreecommitdiffstats
path: root/gbe_bin_generater.patch
blob: b773927e51aabcaf9026857f9afa5d78dc3aade8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff -git a/backend/src/gbe_bin_generater.cpp b/backend/src/gbe_bin_generater.cpp
--- a/backend/src/gbe_bin_generater.cpp
+++ b/backend/src/gbe_bin_generater.cpp
@@ -108,7 +108,7 @@
         return *this;
     }

-    const char* file_map_open (void) throw (int);
+    const char* file_map_open (void) noexcept(false);

     const char* get_code (void) {
         return code;
@@ -144,8 +144,8 @@
         return 1;
     }

-    void build_program(void) throw(int);
-    void serialize_program(void) throw(int);
+    void build_program(void) noexcept(false);
+    void serialize_program(void) noexcept(false);
 };

 string program_build_instance::bin_path;
@@ -153,7 +153,7 @@
 #define OUTS_UPDATE_SZ(elt) SERIALIZE_OUT(elt, oss, header_sz)
 #define OUTF_UPDATE_SZ(elt) SERIALIZE_OUT(elt, ofs, header_sz)

-void program_build_instance::serialize_program(void) throw(int)
+void program_build_instance::serialize_program(void) noexcept(false)
 {
     ofstream ofs;
     ostringstream oss;
@@ -271,7 +271,7 @@
 }


-void program_build_instance::build_program(void) throw(int)
+void program_build_instance::build_program(void) noexcept(false)
 {
     gbe_program  opaque = NULL;
     if(gen_pci_id){
@@ -289,7 +289,7 @@
     }
 }

-const char* program_build_instance::file_map_open(void) throw(int)
+const char* program_build_instance::file_map_open(void) noexcept(false)
 {
     void * address;