Kaleidoscope: Prune __attribute__((used)). Some compilers wouldn't accept one.
[oota-llvm.git] / examples / Kaleidoscope / Chapter8 / toy.cpp
index 5f97a157336b363622edfbd8ea875859610edee5..b78d901db2d5fb5525b88dc88994b4074b35b87a 100644 (file)
@@ -1383,13 +1383,13 @@ static void MainLoop() {
 //===----------------------------------------------------------------------===//
 
 /// putchard - putchar that takes a double and returns 0.
-__attribute__((used)) extern "C" double putchard(double X) {
+extern "C" double putchard(double X) {
   fputc((char)X, stderr);
   return 0;
 }
 
 /// printd - printf that takes a double prints it as "%f\n", returning 0.
-__attribute__((used)) extern "C" double printd(double X) {
+extern "C" double printd(double X) {
   fprintf(stderr, "%f\n", X);
   return 0;
 }