mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 05:10:05 +00:00
Remove some unused macros and functions.
This commit is contained in:
parent
f33aacd165
commit
6f13c73229
@ -148,8 +148,4 @@ spvResultToString(spv_result_t res) {
|
||||
return out;
|
||||
}
|
||||
|
||||
void message(std::string file, size_t line, std::string name) {
|
||||
std::cout << file << ":" << line << ": " << name << std::endl;
|
||||
}
|
||||
|
||||
} // namespace libspirv
|
||||
|
@ -33,20 +33,6 @@
|
||||
|
||||
#include "spirv-tools/libspirv.h"
|
||||
|
||||
/// For debugging purposes only
|
||||
/// Prints the string to stdout
|
||||
#define MSG(msg) \
|
||||
do { \
|
||||
libspirv::message(__FILE__, size_t(__LINE__), msg); \
|
||||
} while (0)
|
||||
|
||||
/// For debugging purposes only
|
||||
/// prints the variable value/location/and name to stdout
|
||||
#define SHOW(exp) \
|
||||
do { \
|
||||
libspirv::message(__FILE__, size_t(__LINE__), #exp, (exp)); \
|
||||
} while (0)
|
||||
|
||||
namespace libspirv {
|
||||
class diagnostic_helper {
|
||||
public:
|
||||
@ -117,14 +103,6 @@ class DiagnosticStream {
|
||||
|
||||
std::string spvResultToString(spv_result_t res);
|
||||
|
||||
/// Helper functions for printing debugging information
|
||||
void message(std::string file, size_t line, std::string name);
|
||||
|
||||
template <typename T>
|
||||
void message(std::string file, size_t line, std::string name, T val) {
|
||||
std::cout << file << ":" << line << ": " << name << " " << val << std::endl;
|
||||
}
|
||||
|
||||
} // namespace libspirv
|
||||
|
||||
#endif // LIBSPIRV_DIAGNOSTIC_H_
|
||||
|
Loading…
Reference in New Issue
Block a user