// Copyright 2019 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// This file contains LLVM stub functions - these are functions that are never
// called and are declared to satisfy the linker.

#include <assert.h>

#define STUB() assert(false); // Stub function. Should not be called

#include "llvm/Transforms/IPO/PassManagerBuilder.h"

namespace llvm
{

void PassManagerBuilder::addExtension(ExtensionPointTy Ty, ExtensionFn Fn) { STUB(); }

} // namespace llvm

// Copyright 2019 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// This file contains LLVM stub functions - these are functions that are never
// called and are declared to satisfy the linker.

#include <assert.h>

#define STUB() assert(!"Stub function. Should not be called");

#include "llvm/Transforms/IPO/PassManagerBuilder.h"

namespace llvm
{

void PassManagerBuilder::addExtension(ExtensionPointTy Ty, ExtensionFn Fn) { STUB(); }

} // namespace llvm

--- 
+++ 
@@ -17,7 +17,7 @@
 
 #include <assert.h>
 
-#define STUB() assert(!"Stub function. Should not be called");
+#define STUB() assert(false); // Stub function. Should not be called
 
 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
 
Fix warning treated as error

Bug: chromium:963658
Change-Id: I7db9bd4b5cec57c65298cdef512d18e31d4182f5
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31594
Presubmit-Ready: Ben Clayton <1f693eb7158dc33015048c09d6712f74dabddf79@google.com>
Kokoro-Presubmit: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Tested-by: Ben Clayton <1f693eb7158dc33015048c09d6712f74dabddf79@google.com>
